#Mathieu Ducrot-SetupIntents

1 messages · Page 1 of 1 (latest)

copper chasm
#

Can you clarify that second part? You should definitely check the Subscription/Payment's status apart from the SetupIntent's status

nocturne cloud
#

To give you more context in my integration i managed to store payment method via SetupIntent + PaymentElement and then in the return_url from the confirmSetup I create the subscription based on the SetupIntent status (provide in the query params).

If the PM is a card i attempt to directly create the subscription and for most of my card test the subscription status are always active, that why i'm asking.

But from what i understand, i must always check the payment intent of the subscription (via API or via webhook) to deliver the product licence on my end user

magic tendon
#

@nocturne cloud that's not the recommended integration path. We discourage creating the SetupIntent yourself, you should be creating the Subscription first instead

#

But yes the SetupIntent will always end up in processing and not succeeded with Cards.

nocturne cloud
#

why is it discourage ? i don't want to create a subscription at any time the customer goes on the checkout page. I only want to create subscription if the customer did setup his payment method.

If i follow the "normal path" as you say on this guide https://stripe.com/docs/billing/subscriptions/build-subscription?ui=elements i can end up with multiple non validate subscription if the customer don't actually fill the form.

Where on the other side, following this guide https://stripe.com/docs/payments/save-and-reuse?platform=web#web-submit-payment-details, i end up creating the subscription only once, and i'm sure i don't have to reset the billing date

magic tendon
#

That's fair, that's just not the recommended integration path

nocturne cloud
#

so is checking the subscription status (being active) is enough to notify the client for his purchase or do i must also check the payment intent status link to that subscription ?

magic tendon
#

The Subscription would be enough

nocturne cloud
#

ok thanks so if i do that for card and use webhook for delayed notification method (like sepa) i guess i should be fine