#Zoro M
1 messages · Page 1 of 1 (latest)
Hi there, so you want to create a Stripe token for an Apple Pay token?
No, I can get an Apple Pay token from the client, but I didn't know how to use this for transactions.
When the user select Apply Pay, the payment amount is not known currently, I need to confirm I get the permit to charge customer's card, and I can get the Apple pay token
https://github.com/stripe/stripe-ios/blob/a05b307c8a9ef6ee6c53726da2392073b5292f19/Stripe/STPAPIClient%2BApplePay.swift#L156-L189 OK. This is how Stripe uses an Apple Pay token
So basically this is how it work with /v1/tokens API
-d pk_token=<PKPaymentToken.paymentData decoded as JSON> \
-d pk_token_instrument_name=<PKPaymentToken.paymentInstrumentName> \
-d pk_token_payment_network=<PKPaymentToken.paymentNetwork> \
-d pk_token_transaction_id=<PKPaymentToken.transactionIdentifier>
Once you have the Stripe token, you can use it to create a payment.
Let me check, one sec
I have some problem with my Google Pay setup so I can't test it out now