#MarkAW-sub-default-pm
1 messages · Page 1 of 1 (latest)
Hey there!
You should use this parameter when creating your Subscriptions to automatically save the PM: https://stripe.com/docs/api/subscriptions/create#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.
Otherwise you should set it as the default PM on the subscription/customer retrospectively: https://stripe.com/docs/billing/subscriptions/build-subscriptions?ui=elements#default-payment-method
The attach endpoint does not set as default
Thanks. I'll try that
Sure, np!