#funkthat
1 messages · Page 1 of 1 (latest)
Hello! We'll be with you shortly. Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
- funkthat, 1 day ago, 13 messages
- funkthis-default-pm, 3 days ago, 37 messages
- funkthat, 3 days ago, 6 messages
- funkthat, 4 days ago, 17 messages
Hi 👋
If you do not set a Payment Method to be the default at either the Customer or Subscription object level, then we will not assume a default payment method when you're creating Subscriptions and you will need to tell us which Payment Method should be used.
might be easier by example, give me a tick i'll demonstrate what I am referring to
ohhh I think I see how stripe does this now.
so if we do not have a default method set at the customer level, does the creation of a subscription use the only or first method available in the payment methods list and attach that to the subscription even if it is not set as default at the customer level?
just trying to figure out how it selects a method by default if it is not set at the customer level now.
I don't believe so, do you have a Subscription where you saw that behavior?
i was incorrect that the payment method was null at the subscription level when it was also null at the customer level, but that is now the part I am trying to determine how it selects a method on subscription creation, hard to answer your question because I do not understand the behavior.
i might just have to re-read the documentation and perform some more tests to determine this.
If you don't set a default payment method when creating the Subscription, one will not be set on the Subscription object.
When it comes time to process a payment for a Subscription, the system will check the following fields for a payment method in this order, if no payment method is found then the payment will fail:
default_payment_method(on Subscription)default_source(on Subscription)invoice_settings.default_payment_method(on the Customer)default_source(on the Customer)
the reason i am asking this, is because i've created my own billing portal using stripe elements/api - now I just want to be able to handle payment methods when created and detached correctly
that's really helpful. thanks toby. i will go perform tests to make sure I re-create the correct behavior for payment methods.
appreciate your time, happy holidays...