#jack11sparrow

1 messages ยท Page 1 of 1 (latest)

plucky lionBOT
granite karma
#

Hi ๐Ÿ‘‹ if this is for a new integration that hasn't gone live yet, then I would recommend taking a look at the payment_settings.save_default_payment_method option:
https://stripe.com/docs/api/subscriptions/create#create_subscription-payment_settings-save_default_payment_method

It causes the default payment method on the Subscription to be set to the payment method used when a payment succeeds.

If you're trying to build a process to make this change to existing Subscriptions that are already in progress, then that will take a bit more effort but we can talk through that.

tired harbor
#

we are not live yet, still developing
but we do need this functionality soon
right now we are using sdks and webhooks in Backend
would it be possible with this?

granite karma
#

Gotcha, in that case I would use the parameter I referenced above when creating your Subscriptions. Setting it to on_subscription, that will cause the default_payment_method field on the Subscription to automatically be set to the Payment Method being used when the subscription's initial payment succeeds.

tired harbor
#

@wispy river

#

this you are telling for sdk?

granite karma