#Hugues

1 messages · Page 1 of 1 (latest)

carmine ridgeBOT
deft spruce
#

One you've used the setup intent to collect the payment method and set it as the mandate, you'd set it as the default payment method on the customer and immediately create a subscription for them

ebon plume
#

Sorry, not quite clear.
My understanding of the sequential process is this:

  1. The client initiate the creation of a setup intent.
  2. The server creates a setup intent.
  3. The client acknowledge to the mandate terms and that's it
    At which stage do you propose to create the subscription?
deft spruce
#

After step 3 - at that point you can create the subscription and pay for it using the payment method that was setup through the setup intent

ebon plume
#

That's what I thought. But after step 3, the process is complete. There must be a way to trigger the server that the setup intent status is successful?

deft spruce
#

You can listen for setup_intent.succeeded and trigger further server-side API calls from there

ebon plume
#

I see... Thanks! I'll try that - Have a nice day