#cblaze22
1 messages · Page 1 of 1 (latest)
Can you elaborate a bit more on what flow you're trying to build exactly?
Sure
We have users save their credit card for later use in some instances using backend logic.
However, we also use stripe.js, which is user input and iframed
Is there a way to use this saved credit card in the stripe.js setup
Because its ALWAYS user input to create a token
on a website
Thats our stripe.js fields generated by you
This user has a saved credit card
How can I use that instead and create a token to be used instead of the user doing this everytime by entering CC info
Ah ok. So if the user already has a payment method saved, you want to detect that and just enable them to select the saved payment method instead? Do I have that right?
Yes with stripe.js
Should I just create a one time card token after Place Order from the Payment Method?
Are you using the Charges API or Payment Intent API?
Charges
Or using SetupIntents?
Gotcha
So you are saving and attaching the pm_123 objects on the customer? You should just be able to display them and issue a request on the backend that creates a charge with the PM: https://stripe.com/docs/api/charges/create#create_charge-source
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Or how are you saving payment methods? This looks to be an older flow
Got it, I think I got it