#raju_97566

1 messages · Page 1 of 1 (latest)

open obsidianBOT
drowsy veldt
#

Hi, let me help you with this.

#

Are you listening to setup_intent.succeeded webhook events?

hazy wadi
#

No. Using return url

#

Please, help in this

drowsy veldt
#

You shouldn't perform any business logic using the return url, what if the customer closes the browser?

hazy wadi
#

Okay, I will implement webhooks.
please, also provide how to get paymentMethodId from setupIntent

drowsy veldt
#

You will receive the setup_intent.succeeded event which will contain the SetupIntent object. In it you will see the payment_method ID.

hazy wadi
#

using paymentMethodId I want to delete existing card and add new card

#

ok