#letlu_code
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/1466649535060250756
📝 Have more to share? Add more details, code, screenshots, videos, etc. below.
You will need an ApplePay certificate anyway
Here?
We have made the configuration on our side, but it still doesn't work
You can take a look at the video
Okay, can you show Xcode where we can see the certificate and the merchant id?
Can you show your certificate setting on Apple Developer page? similar to this
Thanks. When you created this certificate / merchant, didn't it ask something "For China mainland"?
none
Our company is based in Hong Kong, and the error occurs when users make payments in the United States
Which Stripe API are you using in this screen?
Hmm okie. Was this the first time you created the CSR file and generate a certificate?
Yes
Previously, this Stripe account did not have the relevant Apple Pay certificate configured
Okay. Can you share the Publishable Key you are using in the app? Publishable Key is safe to share here
Or you can double check which account's Publishable Key you are using
pk_live_51QZFWhP91dwN8rGwPPNqsdZktWo5xuCIZAPynSTbe2DdhFHR02c6YI2Ov92NQgHSQuyMtRLYsQTR8ptOMY4FzkF5007poe4UGn
Alright looks good. How does the log look like when you faced the error?
No log on React Native. How did you build the project?
Are we playing online packs?
What do you mean?
Hmm, if you build your app in Test mode, does ApplePay work?
The testing environment also does not display error logs.
Hmm really? Can you share the log when you tested it? It should have something, right?
{
"code": "Canceled",
"message": "The payment has been canceled",
"localizedMessage": "The payment has been canceled",
"declineCode": null,
"type": null,
"stripeErrorCode": null
}
Okie, on the same device, can you finish the ApplePay on https://docs.stripe.com/elements/express-checkout-element ?
We were unable to decrypt your request. Please make sure you've generated and uploaded your Apple Pay certificate at https://dashboard.stripe.com/settings/payments/apple_pay.
Observing above the clouds, I saw the log
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
Is that the log when trying the Express Checkout Elements on our Doc?
I believe the Express Checkout Element should work. If above is your log on your own React Native app, I am afraid there is still some issue with the certificate
The best way is to regenerate a new certificate and closely follow our Doc
{
"code": "Failed",
"message": "We were unable to decrypt your request. Please make sure you've generated and uploaded your Apple Pay certificate at https://dashboard.stripe.com/settings/payments/apple_pay.",
"localizedMessage": "There was an unexpected error -- try again in a few seconds",
"declineCode": null,
"type": "invalid_request_error",
"stripeErrorCode": ""
}
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
Yes, could you try regenerate the certificate?
I tried but it seems to be unsuccessful. This Stripe account has been migrated before. Does this have any impact
It could be. Which kind of migration have you done?
Is this the right place? I've tried creating it several times, but it still doesn't work
Yes and did you recreate the test one or the non-test one?
I recreated both because my debug package is in beta version, so I updated them both.
Yes
On Xcode can you disable the Live one and only use the Test?
Yes yes, then download the new certificate from Dashboard again
That's for Automatic Payment Method, of one-off and recurring payments
Inside the Default you can find ApplePay which can lead to the certificate page too
Did you try to recreate the certificate?
I have tried several times already
👋 taking over for my colleague. Let me catch up.
Hello @celest sinew, we have sent you a direct message, please check it at https://discord.com/channels/@me/1466705335149396001
- 🔗The message has instructions on how to open a direct support case with our Developer Support team, in order to help you more effectively.
@celest sinew you should have just received a DM to create a ticket with our team since we need to investigate this further async
please let us know when you submitted your question
and someone would be shortly with you
please click on the link you received in a DM and submit all of the details
add as much information as possible
and we will get back to you shortly
here?
unfortunately I don't read mandarin
I haven't found the entry to create a case
Why did I have to disable and then re-enable Apple Pay for it to work again
Hey! Taking over for my colleague. Let me catch up.
Now the test environment for Apple Pay can be used normally, because I disabled Apple Pay in the test Stripe account and then re-enabled it, which allowed normal payment.
Why is this so?
Ah that's weird, probably it's some sort of a propagation latency
So now you are able to accept and test Apple Pay payments in test mode ?
Nope, not as far as I know