#mahendra_error

1 messages ยท Page 1 of 1 (latest)

hexed grailBOT
#

๐Ÿ‘‹ 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/1417848538309722192

๐Ÿ“ Have more to share? Add more details, code, screenshots, videos, etc. below.

foggy atlas
#

๐Ÿ‘‹ happy to help

#

what's the request ID?

lunar dirge
#

import { loadStripe } from "@stripe/stripe-js";
import { Elements } from "@stripe/react-stripe-js";

const stripePromise = loadStripe(process.env.STRIPE_PUBLIC_KEY!);

export const StripeProvider = ({ children }: { children: React.ReactNode }) => {
return <Elements stripe={stripePromise}>{children}</Elements>;
};

here my provider

below my hook where manage apple pay

foggy atlas
#

{
"error": {
"message": "Could not create Apple Pay session. Please make sure you have registered this Stripe account. For more information, see https://stripe.com/docs/apple-pay#web.",
"type": "invalid_request_error"
}
}
where do you see this message?

Allow customers to securely make payments using Apple Pay on their iPhone, iPad, or Apple Watch.

lunar dirge
#

Could not create Apple Pay session. Please make sure you have registered this Stripe account. For more information, see https://stripe.com/docs/apple-pay#web.",
When I pay with a sandbox account with test card details, then after open apple sandbox and payment processing and then get the error apple pay session error

Allow customers to securely make payments using Apple Pay on their iPhone, iPad, or Apple Watch.

foggy atlas
#

would you mind sharing with me an accessible URL where I could test this? the environment should be using the sandbox keys

lunar dirge
#

Apple Pay session API call failed because Apple could not validate your domain with Stripe. how i fix this error

foggy atlas
#

what do you mean by Apple Pay session API?

#

but I'm still unsure which API you're referring to when you say Apple Pay session API

hexed grailBOT
solemn cove
#

We'll substitute the real card for a Stripe test token on payment