#callmeredjohn-token

1 messages · Page 1 of 1 (latest)

wet night
#

Hi @wide ridge! Are you accepting payments on the web or on a native app?

wide ridge
wet night
frail condor
#

@wet night we already implement it on app side (documentation provided by apple) and successfully decrypt binary data provided by apple on payment successfull

#

Our question is how to process the decrypted data on stripe to charge a customer?

unkempt granite
#

hmm ok, so you manually work with the PKToken? why not use our SDK?

#

but if you have a PKPayment there are undocumented ways to convert that to a Stripe token to charge it. This should help

curl -u sk_test_123: https://api.stripe.com/v1/tokens \
  -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>`
frail condor
unkempt granite
#

yeah that is an older guide

#

you should use the one @wet night linked overall!