#sskarim - subscriptions

1 messages · Page 1 of 1 (latest)

weak frigate
#

Hi there!

#

i'm doing this to allow customer to choose a payment method everytime
Can you clarify what is your payment flow?

marsh totem
#

i'm migrating a working subscription integration from card element to payment element , the recommended way from stripe docs is to create an incomplete subscription to get a payment intent, than update the subscription when payment confirmed, it's working fine with new subscription, but for updating subscription i can't figure it out, the logic i want is when customer upgrade to a more expansive plan, he pay the diffrence immedialtly

#

if i don't use payment_behavior='default_incomplete' param in the update call i'm gettinng this error "This customer has no attached payment source or default payment method. Please consider adding a default payment method"

weak frigate
marsh totem
#

if i set a defeult payment method on subscription creation , how can i test scenarios where payment fail, transition form processing to require payment method .... on subscription upgrade

#

also what if i want to let my costomer to change their payment method on subscription upgrade , he uses a card for the first monthely subs , but he ant to pay with bank transfert for a more yearly subscription

marsh totem
#

how ?

calm bobcat
#

you can use the https://stripe.com/docs/billing/subscriptions/integrating-customer-portal to let customers change their payment methods, or you can redirect them to the Checkout page to set up and save a new payment method : https://stripe.com/docs/payments/checkout/subscriptions/update-payment-details or you can build your own page to collect payment details and save them and update the subscription (https://stripe.com/docs/payments/save-and-reuse) , depends exactly what options work for you.

marsh totem
#

ok thanks, i have a last question