#vicky555
1 messages · Page 1 of 1 (latest)
hello, gimme a couple of mins to get back to you
Thanks very much! No problem.
You can use the token directly to create a PaymentIntent
curl -u sk_test_123: https://api.stripe.com/v1/payment_intents \
-d amount=2000 \
-d currency=usd \
-d "payment_method_data[type]"=card \
-d "payment_method_data[card][token]"=tok_123
or alternatively convert it to a PaymentMethod first
https://stripe.com/docs/api/payment_methods/create#create_payment_method-card
curl -u sk_test_123: https://api.stripe.com/v1/payment_methods \
-d type=card \
-d "card[token]"=tok_123