#weirdlemon-savecard

1 messages ยท Page 1 of 1 (latest)

main sinew
#

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

undone temple
#

How is that a card?

main sinew
undone temple
#

How do I create a card without making a payment?

main sinew
undone temple
#

oh

#

so I have to create a paymentMethod

#

instead of a card

#

then I can use the payment method for future payments

main sinew
#

ideally yes, you would want to use PaymentMethods instead of Tokens/Sources to create cards. Tokens are deprecated.

undone temple
#

Thanks a ton Alex!!

#

๐Ÿ™Œ๐Ÿผ

main sinew
#

you're welcome, feel free to reach out if you have any questions ๐Ÿ˜„

undone temple
#

Definitely mate!