#HKrievs-paymentmethods
1 messages · Page 1 of 1 (latest)
@ashen meadow it's the one you set as the default using either https://stripe.com/docs/api/subscriptions/create#create_subscription-default_payment_method or https://stripe.com/docs/api/customers/update#update_customer-invoice_settings-default_payment_method
Thanks again 😉
but wait - Using the first Method (creating subscription) demands that the paymentMethod already exists, right?
Im using the piece of code to create subscription.
This will create the paymentMethod on the fly.
yep then Checkout is setting the default_payment_method of the Subscription it creates to the one used in the Session
Okay, but If I look in dashboard, the PM is not marked as default?
if you look at dashboard page for the Subscription it should note it there