#tamparara-update-payment-method
1 messages · Page 1 of 1 (latest)
I think it depends on how you want the default payment method to behave. For example: if you want to set it at the Subscription level (as opposed to at the Customer level), then you can explicitly update the Subscription's default Payment Method
currently, I have it on the subscription level
I cannot use this endpoint since it requires default_payment_method id
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
and that's something I don't have because new card has to be attached to the customer payment_metohd
I don't understand what you're asking. The approach you mentioned in your first message (I believe) should work. So at what point are you running into an error? What's the error?
I don't have any issue with that, I'm just asking if it is a correct approach (or one of the correct approaches) :]
If yes, that topic can be closed
Ahhh, okay. Yeah, that approach should work just fine. For this step
- attach it to the customer
You can also set the new payment method as default on the Customer viainvoice_settings.default_payment_methodif you want to skip setting the default Payment Method on the Subscription: https://stripe.com/docs/api/customers/create#create_customer-invoice_settings-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.