#letlu_code

1 messages · Page 1 of 1 (latest)

winged saffronBOT
#

👋 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.

sacred acorn
#

You will need an ApplePay certificate anyway

celest sinew
celest sinew
#

We have made the configuration on our side, but it still doesn't work

sacred acorn
#

Did you register the certificate?

#

Can you share the account id? acct_xxx

celest sinew
#

acct_1QZFWhP91dwN8rGw

#

Yes, I have already registered the certificate

sacred acorn
#

Okay, can you show Xcode where we can see the certificate and the merchant id?

celest sinew
sacred acorn
#

Can you show your certificate setting on Apple Developer page? similar to this

celest sinew
sacred acorn
#

Thanks. When you created this certificate / merchant, didn't it ask something "For China mainland"?

celest sinew
#

none

#

Our company is based in Hong Kong, and the error occurs when users make payments in the United States

sacred acorn
celest sinew
#

confirmPlatformPayPayment

#

@stripe/stripe-react-native

sacred acorn
#

Hmm okie. Was this the first time you created the CSR file and generate a certificate?

celest sinew
#

Yes

#

Previously, this Stripe account did not have the relevant Apple Pay certificate configured

sacred acorn
#

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

celest sinew
#

pk_live_51QZFWhP91dwN8rGwPPNqsdZktWo5xuCIZAPynSTbe2DdhFHR02c6YI2Ov92NQgHSQuyMtRLYsQTR8ptOMY4FzkF5007poe4UGn

sacred acorn
#

Alright looks good. How does the log look like when you faced the error?

celest sinew
#

Are you referring to the Stripe logs? Where can I view them?

#

Is this it?

sacred acorn
#

No log on React Native. How did you build the project?

celest sinew
#

Are we playing online packs?

sacred acorn
#

What do you mean?

celest sinew
#

This is the feedback from online package users

#

It is not a development environment

sacred acorn
#

Hmm, if you build your app in Test mode, does ApplePay work?

celest sinew
#

The testing environment also does not display error logs.

sacred acorn
#

Hmm really? Can you share the log when you tested it? It should have something, right?

celest sinew
#

{
"code": "Canceled",
"message": "The payment has been canceled",
"localizedMessage": "The payment has been canceled",
"declineCode": null,
"type": null,
"stripeErrorCode": null
}

sacred acorn
celest sinew
sacred acorn
#

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

celest sinew
#

{
"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": ""
}

sacred acorn
#

Yes, could you try regenerate the certificate?

celest sinew
#

I tried but it seems to be unsuccessful. This Stripe account has been migrated before. Does this have any impact

sacred acorn
#

It could be. Which kind of migration have you done?

celest sinew
#

Should we replace our encryption key

#

Do we need to re-verify the domain name

sacred acorn
#

Hmm no need to veirfy domain AFAIK

#

Just recreate the certificate on Dashboard

celest sinew
#

Is this the right place? I've tried creating it several times, but it still doesn't work

sacred acorn
#

Yes and did you recreate the test one or the non-test one?

celest sinew
#

I recreated both because my debug package is in beta version, so I updated them both.

sacred acorn
#

Alright, and are you using the test one?

#

For testing

celest sinew
#

Yes

sacred acorn
#

On Xcode can you disable the Live one and only use the Test?

celest sinew
#

here?

sacred acorn
#

Yes yes, then download the new certificate from Dashboard again

celest sinew
#

Still not working

#

What is this configuration?

sacred acorn
#

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?

winged saffronBOT
celest sinew
#

I have tried several times already

rotund storm
#

👋 taking over for my colleague. Let me catch up.

winged saffronBOT
#

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.
rotund storm
#

@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

celest sinew
#

What does it mean

#

Can you solve it urgently? We are in the process of publishing

rotund storm
#

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

celest sinew
rotund storm
#

yes

#

follow the steps

celest sinew
rotund storm
#

unfortunately I don't read mandarin

celest sinew
#

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

winged saffronBOT
glad silo
#

Hey! Taking over for my colleague. Let me catch up.

celest sinew
#

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?

glad silo
#

So now you are able to accept and test Apple Pay payments in test mode ?

celest sinew
#

yes

#

Has anyone reported a similar issue before?

glad silo
#

Nope, not as far as I know