#S60-Cosminacho-installments

1 messages ยท Page 1 of 1 (latest)

sudden spruce
#

Hi there!

valid aspen
#

subscriptions

sudden spruce
#

Got it! Then you should listen to webhook events, for example customer.subscription.updated (to know when the subscription status change) and/or invoice.paid (to know when a subscription invoice is paid).

valid aspen
#

ok.

what if the use decides to use a different payment method ,(other than the card one )

#

the one with IBAN for example

sudden spruce
#

is your question how to change the payment method of an existing subscription?

valid aspen
#

give me a sec,

I will show you an example.

#

This is card

#

This is Sepa

#

how do I know for example if a user wants a refund in the SEPA ? or if the he/she does not have enough money?

#

will this be triggered by "customer.subscription.updated"

sudden spruce
#

how do I know for example if a user wants a refund in the SEPA ?
What do you mean? If the customer wants a refund, they will probably contact you directly.
or if the he/she does not have enough money?
If there's not enough money the payment will fail, so you will receive a invoice.payment_failed webhook event and Stripe will automatically retry the payment based on your settings there: https://dashboard.stripe.com/settings/billing/automatic

valid aspen
#

I see.

#

thank you !

sudden spruce
#

Happy to help ๐Ÿ™‚

valid aspen
#

one more question

#

how can I test a second payment? ๐Ÿ™‚

sudden spruce
#

you mean the next payment of a subscription?

valid aspen
#

yes

sudden spruce
valid aspen
#

let me see

#

thank you !

valid aspen
#

Hey Soma!

#

are you still around?

sudden spruce
#

yes! what's your question?

valid aspen
#

so, I started using the test clock function

#

I like it, but there is an issue with it somehow

#

so, I made a customer & subscription to test a second payment.

What I am seeing is that as soon as the payment is done, there are other events getting triggered such as "payment_intent.succeeded"

#

is there a way we can differentiate between them ? ๐Ÿ™‚

Left is, customer subscription updated

Right is payment_intent.succeded.

sudden spruce