#celsian_api
1 messages ¡ Page 1 of 1 (latest)
đ Welcome to your new thread!
â˛ď¸ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
âąď¸ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.
đ This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1357412065714634803
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
Hi! I'm not sure I understand your question? Do you mean you want to set/use the received payment method as the Customer's default payment method?
If so, this is likely the guide for you: https://docs.stripe.com/payments/checkout/save-during-payment
Yes, that's correct. I've just read through that document and this is talking about saving the payment for future use.
Our product is a subscription, so the payment method is already saved to the customer's account, it's just not set as the customers default payment method.
I was hoping there was a value I could pass when confirming the Express Checkout Element or Payment Element to have it save automatically.
Can you share the code you're using to create the ECE or Payment Element? Also where/how do you create the Customer?
I'll try to track down the code for you, I'm a backend engineer and was trying to help front end find a solution to this problem. Just a moment...
The customer is created by our Ruby on Rails backend early on during their sign up. It sits dormant unless they elect to purchase.
I'm not seeing the ability to provide an existing Customer ID to either the ECE or Payment Element, so I'm not sure it can be done automatically.
That's what I concluded based on the JS API docs, I just wanted to confirm I wasn't missing anything. Thank you for checking for me.
Of course!