#Srujan
1 messages · Page 1 of 1 (latest)
Hi there
You can follow this example:
https://github.com/stripe/react-stripe-js/blob/master/examples/hooks/9-Payment-Element.js
If you have a saved and valid Card Payment for Google Pay, then you'll see Google Pay option
Another question: I'm having trouble figuring out how to serve the domain association file for my ngrok address. Do you know how I'm supposed to serve it since ngrok is the server and I don't know where the option is to serve the domain association file at the route for apple pay registration
AFAIK, ngork is only tunnels traffic and you can't serve static file content with it. You should use instead a hosting server, maybe Glitch can help you deploy your sample application and your static files (e.g. the Apple domain verification file)
But I'm trying to test locally hence why I need the port forwarding
What do you people do when they need to test apple pay locally?
You can create an nginx locally that serves static content and serve your web application then you create a network tunnel using ngrok if you want. or you server the static files using your web application
If I'm in safari I don't see apple pay as an option on this demo. https://4242.io/payment-element/ Do I need to setup any payment methods first with apple id and login?
Yes you need to add a valid card to your Apple Wallet
All requirement for testing are mentioned here for testing Apple Pay and/or Google Pay
https://stripe.com/docs/stripe-js/elements/payment-request-button?client=html#html-js-testing