#Siva_K - Customer
1 messages ยท Page 1 of 1 (latest)
Hi Thank you for response
You would set the customer_creation parameter to always when creating the Checkout Session
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Thank you so much
You're very welcome, that's why we are here ๐
Can we set the current created payment methods as default to the Customer created in checkout session
To do that you would want to listen to the Checkout Session completed event and then set the newly created payment method as the default for the customer. The checkout event would have both the Payment method and customer IDs in it.
which API do i need to use to set default payment method
Customer Update. I know this parameter is in invoice_settings but it's how we set the default PM:
https://stripe.com/docs/api/customers/update#update_customer-invoice_settings-default_payment_method