#Eranga-PaymentMethod
1 messages · Page 1 of 1 (latest)
- yes
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
ID of the default payment method for the subscription. It must belong to the customer associated with the subscription. This takes precedence over default_source. If neither are set, invoices will use the customer’s invoice_settings.default_payment_method or default_source.
So you can specify directly when creating a Subscription
those specified (default_payment_method and default_source while creating Subscription) will take precedence over the customer invoice_setting.default_payment_method, then customer.default source
- (sorry will come back later)
- It is really depends on how the Customer object looks like after they input credit card into Customer Portal (you can test it yourself, or wait until I have time then I can try:D) But technically when a Subscription renews it follow the same order as 2.
@tropic sparrow Sorry, I went for lunch. For 3, I think I will add a payment method using the dashboard and check the customer object and see what changed
Thank you for answering my questions. 🎉
I tested using Stripe dashboard and it attaches to default_source
If I use customer portal, it attaches to invoice_settings.default_payment_method