#mahendra_error
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/1417848538309722192
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
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
{
"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?
each request to our API has a request ID? https://support.stripe.com/questions/finding-the-id-for-an-api-request
Find help and support for Stripe. Our support site provides answers on all types of situations, including account information, charges and refunds, and subscriptions information. Get your questions answered and find international support for Stripe.
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
would you mind sharing with me an accessible URL where I could test this? the environment should be using the sandbox keys
Apple Pay session API call failed because Apple could not validate your domain with Stripe. how i fix this error
what do you mean by Apple Pay session API?
you need to register your domain https://docs.stripe.com/apple-pay?platform=web#register-domain
but I'm still unsure which API you're referring to when you say Apple Pay session API
The sandbox cards from Apple (https://developer.apple.com/apple-pay/sandbox-testing/) won't work in test mode โ you need to add a real card to your Apple Pay wallet
We'll substitute the real card for a Stripe test token on payment