#jimin - ApplePay
1 messages · Page 1 of 1 (latest)
I'm referring to this: https://developer.apple.com/documentation/passkit/pkpayment
We are trying to use apple pay without using Stripe js in our frontend. We are trying to use our own frontend but would still like to use stripe on the backend to accept apple pay if that makes sense.
I'm not too familiar with this, let me ask a teammate.
You'd want to use the Create Token API, https://stripe.com/docs/api/tokens/create_card with the undocumented pk_token parameter to exchange their Apple Pay Token for a Stripe Token. After getting the Stripe Token, you can convert it to a Payment Method or use it directly when creating a Payment Intent by setting payment_method_data.card, https://stripe.com/docs/api/payment_intents/create#create_payment_intent-payment_method_data.
cool! I'll look into these links. Thank you!! 🙂
hmm i don't see the pk_token parameter in the api: https://stripe.com/docs/api/tokens/create_card
Yes, that is because it's an undocumented parameter.
oh so we would just use pk_token parameter, fill it with the apple pay token and it would give us the sripe token we'd need to use as a payment method
does it work the same way for google pay?
we would register our domain using the same step as if we were to use Element or Checkout right?