#celsian_api

1 messages ¡ Page 1 of 1 (latest)

ionic sapphireBOT
#

👋 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.

red stag
indigo basin
#

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.

red stag
#

Can you share the code you're using to create the ECE or Payment Element? Also where/how do you create the Customer?

indigo basin
#

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.

red stag
#

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.

indigo basin
#

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.

red stag
#

Of course!