Skip to content

mohamedsamara/react-stripe-apple-pay

Repository files navigation

React Node TypeScript

This project is boostrapped with react-node-typescript

Description

This project is a template example of React, Stripe and Apple Pay.
Libraries Used

Quick start

  1. Clone this repo using git clone https://github.com/mohamedsamara/react-stripe-apple-pay.git
  2. Move to the directory: cd <PROJECT_NAME>.
  3. Run yarn install in order to install dependencies.

Start development

$ yarn run dev

Simple build for production

$ yarn build

Run build for production

$ yarn start

Prerequisites to see the Apple Pay Button

  1. Download domain association file and host it at unders .well-known directory
  2. Download ngrok on your machine to run the website on HTTPS
  3. Register the ngrok domain with apple on stripe tab

Run ngrok

Run ngrok http 8080
OR
ngrok http 8080 -host-header="localhost:8080" ngrok http --host-header=rewrite 8080