#weirdlemon-savecard
1 messages ยท Page 1 of 1 (latest)
hello @undone temple! i think you may.want to refer to : https://stripe.com/docs/payments/save-and-reuse instead
but to explain a bit more, in that code snippet, the method stripe.customers.createSource is adding a source (in this case, that's a card). to cus_AJ6yY15pe9xOZe
How is that a card?
tok_visa is actually a test card found here : https://stripe.com/docs/testing
How do I create a card without making a payment?
we have a guide on how to do that here : https://stripe.com/docs/payments/save-and-reuse
oh
so I have to create a paymentMethod
instead of a card
then I can use the payment method for future payments
ideally yes, you would want to use PaymentMethods instead of Tokens/Sources to create cards. Tokens are deprecated.
you're welcome, feel free to reach out if you have any questions ๐
Definitely mate!