#davi_api
1 messages ¡ Page 1 of 1 (latest)
đ Welcome to your new thread!
â˛ď¸ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
âąď¸ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.
đ This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1359623472833364198
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
Hello there
You have the PKPaymentToken (https://developer.apple.com/documentation/passkit/pkpaymenttoken) ?
Yep. Decrypted. I am using my own certs.
And using Apple's sdk in the frontend too.
Gotcha, then you would create a Token in our API using that data. Let me get you an example, one sec.
I send that apple token to my backend where I decrypt it
Hmm actually I think you need to send us the encrypted data
meaning I have this available: https://developer.apple.com/documentation/passkit/payment-token-format-reference#//apple_ref/doc/uid/TP40014929
Here is an example cURL request:
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>
I think Stripe has both options, if I am not mistaken
Ah ah yes you are right.
Are you approved to pass the decrypted values already?
That API is private so would need approval.
Oh okay. Not yet.
What is the process like?
You would need to contact our Support team via https://support.stripe.com/contact/login to request approval for your account. Since this is a public server we don't do any account-specific things here.
That said, we overall recommend just passing the Apple Pay Token information.
Like the cURL example above.
Then you aren't actually handling the sensitive data.
Gotcha. I am using Adyen and Checkout.com that way though.
Looking to add Stripe, so I am POCing
Yep makes sense. If you want to pursue the decrypted path then your next step is to reach out to our Support team.
Is there a ticket template or something that I can use?
Looking for guidance on how to engage them
Not really, no. They should have guidelines on how to handle these requests.
I don't know what the exact flow is as my team doesn't handle any account approvals like this.
Gotcha
Your team is really good though. I had other inquiries before, and I love how fast you are
@fading pollen I am curious about other Stripe private APIs haha. But I suppose that is not something you could give more insight into it, would you?
Haha no sorry.
NP. We will cross that bridge when we come to it. Thanks. Have a great day