#seygi
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.
- seygi, 4 hours ago, 11 messages
To save a payment method from customer and save it as a default, the steps will be:
- Collect payment method using Setup Intent: https://stripe.com/docs/payments/save-and-reuse
- Update payment method collected in Step 1 as customer's default payment under
invoice_settings.default_payment_method: https://stripe.com/docs/api/customers/update#update_customer-invoice_settings-default_payment_method
I already have my customer
with default payment
now I need with the customer Id, get the defaulpaymentId
I see! In this case, you will use Customer Retrieval API and find the default payment method under invoice_settings.default_payment_method if the default payment method has been set: https://stripe.com/docs/api/customers/retrieve
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
tks