#Wasabi - Setup Intents
1 messages · Page 1 of 1 (latest)
Hello again! Not sure I understand your question, can you provide more details or rephrase?
Are you asking if the Subscription will produce a new pending_setup_intent for you when you want to update the Payment Method associated with the Subscription?
@fossil grove yes, let me give you more context on this.
Steps a user took to update a payment on a subscription:
Create a new payment method with POST 'https://api.stripe.com/v1/payment_methods'
Attach the payment method to the customer with POST 'https://api.stripe.com/v1/payment_methods/pm_1JxDtKJyGVgKQ3vzsnTnxMGy/attach'
Update the invoice_settings[default_payment_method] on the customer with POST 'https://api.stripe.com/v1/customers/cus_KTpR0hNAWmQGpw'
Update the default_payment_method on the subscription with POST 'https://api.stripe.com/v1/subscriptions/sub_1Jorn9JyGVgKQ3vz2pvFoOzZ'
This is the customer the user used to apply steps #1-4 https://dashboard.stripe.com/test/customers/cus_KTpR0hNAWmQGpw. If you look at Events at the bottom, it looks like a SetupIntent was automatically created in Step#4 which is when I set the newly created payment method as the default_payment_method on the subscription. Since a SetupIntent was created then, does that mean authenticating the customer and checking the card's validity with the customer's bank is happening then too?
11/18/21, 11:58:33 AM A card payment method ending in 4242 was attached to customer cus_KTpR0hNAWmQGpw
evt_1JxDwTJyGVgKQ3vzbBdWN2Ch.
--> I used POST 'https://api.stripe.com/v1/payment_methods/pm_1JxDtKJyGVgKQ3vzsnTnxMGy/attach'
11/18/21, 11:59:01 AM yen1@test.com's details were updated
evt_1JxDwwJyGVgKQ3vzf8aDYbDU
--> That was when I updated the invoice_settings[default_payment_method] on the customer with POST 'https://api.stripe.com/v1/customers/cus_KTpR0hNAWmQGpw'
11/18/21, 11:59:12 AM A new SetupIntent seti_1JxDx6JyGVgKQ3vzNGENM72m was created
evt_1JxDx6JyGVgKQ3vzAIJbYhP5
11/18/21, 11:59:12 AM SetupIntent seti_1JxDx6JyGVgKQ3vzNGENM72m has succeeded
evt_1JxDx6JyGVgKQ3vzxmd4Xxd6
11/18/21, 11:59:12 AM yen1@test.com's subscription has changed
evt_1JxDx6JyGVgKQ3vzHs3tuBin
--> That was when I updated the default_payment_method on the subscription with POST 'https://api.stripe.com/v1/subscriptions/sub_1Jorn9JyGVgKQ3vz2pvFoOzZ'
Attach the payment method to the customer with POST
I've advised you several times to not do this and use a Setup Intent instead. Is there no way to switch to a Setup Intent at this point?
@fossil grove I'm sure there is a way for the user to switch to SetupIntent. It appear to them that a SetupIntent is initiated at step 4. Is that valid?
A Subscription will generate a Setup Intent when it sees a Payment Method that hasn't been set up yet. You should use a Setup Intent much earlier.
What happens if they don't use it earlier (after create a new payment method)? Does it impact their authorization rates later?