#kekko7072_webhooks

1 messages Β· Page 1 of 1 (latest)

heavy hollyBOT
#

πŸ‘‹ Welcome to your new thread!

⏲️ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.

⏱️ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.

πŸ”— This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1316035274165456896

πŸ“ Have more to share? Add more details, code, screenshots, videos, etc. below.

open gust
#

πŸ‘‹ happy to help

lofty dune
#

Hello i need a webhook method to get notified when paypal linked customer remove their contract of automatic payment.

#

i need it so using webhook i can update the server docuemnt of user.

open gust
#

that's not exactly what's happening here

#

this means that the PaymentMethod with Paypal is still active but the underlying card/bank debit etc. from Paypal's side is getting declined

lofty dune
#

Yes i have decline here but it's related to the fact that paypal it's no more connected.

open gust
#

it's still attached to the customer

lofty dune
#

So i need on webhook to make sure to have function that handles the issue of not having it connected,

lofty dune
open gust
open gust
oak trench
lofty dune
#

ok so in webhook currently i have "payment_method.detached"

open gust
#

@oak trench that event is not related

oak trench
open gust
lofty dune
#

ok clear, so how should i handle mandate?

#

mandate.updated

#

?

open gust
#

there's a couple of things that you need to take care of

#

payment_method.detached when the PM is no longer attached and usable for the customer

#

mandate.updated when the mandate gets revoked

#

but in this case

#

it's neither

#

it's just a decline

lofty dune
#

ok differently from what i send as ID, i want to manage the scenareo where user removes paypal as payment method

#

because from what i have seen it's a paypal issue in this case

#

and i've already contacted them but i want to fix also the flow i mentioned now.

open gust
#

this is the error message

The transaction has been declined by PayPal. Ask the user to use a different instrument to complete the payment, or switch to another payment method. For further information, please contact PayPal support and reference this Debug ID: 69908a0b9f09f. PayPal issue: INSTRUMENT_DECLINED
by Instrument they mean the underlying payment method saved on the Paypal's side

#

the only thing you can catch in this case is the error thrown and the error code I shared earlier

lofty dune
#

ok thank you

#

clear

#

can you also help me for the integration of code where i want to manage the scenareo where user removes paypal as payment method?

open gust
#

unfortunately we're closing discord

heavy hollyBOT
#

Hello @lofty dune, we have sent you a direct message, please check it at https://discord.com/channels/@me/1316041080558583849

  • πŸ”—The message has instructions on how to open a direct support case with our Developer Support team, in order to help you more effectively.