#paragonn_subscription-defaultpm

1 messages ยท Page 1 of 1 (latest)

eternal flickerBOT
#

๐Ÿ‘‹ Welcome to your new thread!

โฒ๏ธ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.

โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.

๐Ÿ”— This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1263906697446162662

๐Ÿ“ Have more to share? Add more details, code, screenshots, videos, etc. below.

fossil cairn
#

paragonn_subscription-defaultpm

eternal flickerBOT
fossil cairn
#

You can configure the "default payment method" either at the Invoice level, Subscription or globally on the Customer.

rapid cloud
#

ok, so if I just create a subscription with a payment method will it by default be the default payment method for the subscription?

mortal delta
#

Hi ๐Ÿ‘‹

I'm stepping in as my colleague needs to go.

rapid cloud
#

got it

mortal delta
#

That payment method must belong to the Customer the Subscription is created for.

rapid cloud
#

roger that

#

in addition to locking the payment method to the subscription I would like to update the default payment method for the customer to the last used credit card.

mortal delta
rapid cloud
#

This is the setting I am using the Payment Intent for the Subscription: 'payment_settings' => ['save_default_payment_method' => 'on_subscription'],

mortal delta
#

In that case, the default payment method will be saved once the payment intent succeeds

rapid cloud
#

so is that setting it as the default payment method for the subscription or for the customer?

mortal delta
#

Subscription. Here's the description from our API ref doc

Configure whether Stripe updates subscription.default_payment_method when payment succeeds.

rapid cloud
#

Ok so if a customer creates another subscription with a difference credit card with the same setting. It won't affect the payment method used on the first subscription?

mortal delta
#

Correct

rapid cloud
#

excellent

#

So in the Stripe dashboard in the Invoice for the subscription when it says Billing Method: Charge default payment method it is referring to the default payment method of the subscription?

mortal delta
#

Both. If you have a default payment method on the Subscription, that will take precedence because it's more specific. If you don't have a default on the Subscription, it will fall back to the default on the Customer

rapid cloud
#

ok that is good

#

so this setting on the payment intent: 'payment_settings' => ['save_default_payment_method' => 'on_subscription'], only affects the default for the subscription or also sets the default for the customer?

mortal delta
#

Sorry, which setting?

rapid cloud
#

This line of code in the Payment Intent: 'payment_settings' => ['save_default_payment_method' => 'on_subscription']

#

Does that just sent the default payment method for the subscription or does it also update the default payment method of the Customer as well?

mortal delta
rapid cloud
#

Sorry I meant when creating the Subscription

mortal delta
#

Okay, in that case it will only apply to the Subscription.

rapid cloud
#

ok got it

#

I would need to also set the default payment method separately for the customer

mortal delta
#

Correct. You said you wanted it to be the last payment method used. Do you want that to always be the case?

#

Like, every time the customer pays for something?

rapid cloud
#

yes i think that makes sense. Is that good practice?

mortal delta
#

It might be overkill

rapid cloud
#

well i wouldn't want to do it if it is the same payment method

#

i suppose I don't really need to do it

mortal delta
rapid cloud
#

got it

#

Thanks for your help!

mortal delta
#

Sure thing! I think you might be able to use webhooks to update the customer payment method. But I think you would want to consider how your customers interact with your application and when it would make the most sense to update their payment methods.

https://docs.stripe.com/webhooks