#kekko7072_webhooks
1 messages Β· Page 1 of 1 (latest)
π 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.
π happy to help
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.
that's not exactly what's happening here
when you get this decline code https://docs.stripe.com/error-codes#payment-method-provider-decline
this means that the PaymentMethod with Paypal is still active but the underlying card/bank debit etc. from Paypal's side is getting declined
Yes i have decline here but it's related to the fact that paypal it's no more connected.
it's still attached to the customer
So i need on webhook to make sure to have function that handles the issue of not having it connected,
ha ok, so if it's detached it's as always for payment method?
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
I'm not sure I understand what you mean by that
there is a mandate.updated event that is triggered when the customer cancels on Paypal and you can listen to that.
In this case it was this event : https://dashboard.stripe.com/events/evt_1QOUytA94JJJ3znbKPaFs8R6
ok so in webhook currently i have "payment_method.detached"
@oak trench that event is not related
ah I see. I was thinking of https://docs.stripe.com/payments/paypal/set-up-future-payments?web-or-mobile=web&payments-ui-type=stripe-hosted
When a customer revokes the billing agreement from their PayPal account, the mandate.updated is emitted.
this is for another Payment Method of type card
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
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.
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
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?
what do you mean by that?
unfortunately we're closing discord
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.