This project is boostrapped with react-node-typescript
- This project is a template example of React, Stripe and Apple Pay.
- Clone this repo using
git clone https://github.com/mohamedsamara/react-stripe-apple-pay.git
- Move to the directory:
cd <PROJECT_NAME>
. - Run
yarn install
in order to install dependencies.
$ yarn run dev
$ yarn build
$ yarn start
- Download domain association file and host it at unders .well-known directory
- Download ngrok on your machine to run the website on HTTPS
- Register the ngrok domain with apple on stripe tab
Run ngrok http 8080
OR
ngrok http 8080 -host-header="localhost:8080"
ngrok http --host-header=rewrite 8080