#midnightcrow
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.
- midnightcrow, 1 hour ago, 7 messages
- midnightcrow, 2 days ago, 6 messages
Hi, there are couple of ways to do this. You can update the customer object, https://stripe.com/docs/api/customers/update#update_customer-invoice_settings-default_payment_method and use this parameter to set that payment method as the default for that customer. Or, when you create the subscription, you can pass in the payment method id, https://stripe.com/docs/api/subscriptions/create#create_subscription-default_payment_method to set it as the default on the subscription.
If I do the first option, when I initiate a chaarge on a customer it will still create an invoice is that right?
charge outside of a subscription, one timecharge
For one time charge, you would not need to do that. You can attach the payment method to the customer, and then pass in the payment method if when you create the Payment Intent for that one time payment, https://stripe.com/docs/api/payment_intents/create#create_payment_intent-payment_method. Default payment method is for Billing use cases and not for one time payments.
if you don't specify a payment method when you are doing a one time charge, it goes to the customer default source. How do I set that feild with a paymentMethod