#paragonn-subscriptions
1 messages · Page 1 of 1 (latest)
Hello! You can accomplish this by setting default_payment_method on the Subscription to be the specific Payment Method you want to use for that subscription
Thanks, @shy temple . So right now we are using the confirmCardPayment with a Subscription Payment Intent and that is automatically creating the Payment Method and attaching it to the Customer. Is there a setting in the API that would force the Subscription to just use that Payment Method?
The default_payment_method attribute I mentioned is exactly what you want. Once the PaymentMethod is created and attached to the Customer you'd update the Subscription to set default_payment_method to the Payment Method that was just created.
Alternatively, creating the Subscription and setting payment_settings.save_default_payment_method: on_subscription will also do this automatically for you (https://stripe.com/docs/api/subscriptions/create?event_types-payment_intent.payment_failed#create_subscription-payment_settings-save_default_payment_method)
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
ah I see--I will check it out--thanks!