#Sapna Verma

1 messages · Page 1 of 1 (latest)

orchid cypressBOT
smoky blade
#

You don't have to use additional SetupIntent to save payment method details

sick basalt
#

when is that I need to use the Setup and paymentIntent api..please clarify?

smoky blade
#

If you use Subscription, it will automatically create Payment Intent (non-zero amount) or Setup Intent (zero amount) for you. You don't have to create any of them manually or in extra step as described in the doc above.

The only time when you need to create Payment Intent by yourself is for one-time payment and Setup Intent for saving payment method only

orchid cypressBOT
sick basalt
#

okay, so the webhook event that I should listen to will be payment_intent.succeeded instead of checkout.session.completed

buoyant elk
sick basalt
#

what trigger will be sent if the payment fails...i am using subscription api....

sick basalt
#

there are two events on successful payments - charge.suceeded and payment_intent.suceeded, which one will be fired

smoky blade
#

For successful payment on the invoice of the subscription, you should listen to invoice.paid

sick basalt
#

even if i am not using stripe invoices?

#

i have my own invoicing solution

smoky blade
#

If you're using Subscription API, the payment will be made through Invoices under the hood and invoice.paid event will be sent for successful payment

sick basalt
#

while upgrading using update subscription call, the new price will be reflected in which parameter?

smoky blade
sick basalt
smoky blade
sick basalt
#

there is an event customer.subscription.created ...may I know when will I receive it...on subscription creation? At the same time, I will get the invoice.paid event as you said. Please clarify my confusion

smoky blade
#

When a subscription is created on the customer, customer.subscription.created event will be sent. If the payment on the invoice of the subscription is made, then invoice.paid event will be sent