To run this sample please perform the following steps.
- Create an API key in your Gr4vy dashboard and save it as
./private_key.pem - Create a configuration using
cp config.json.exampleand fill in the following valuesid- Your Gr4vy server ID, e.g.example.server- The environment to use for processing, eitherproductionorsandboxpaymentServiceId- The ID of the payment service to use for processing the payment
- Install Node
v18or above as well as the dependencies for this project- Run
npm install
- Run
- Start the server with
npm run dev
Next, it's possible to run the sample on HTTPs. We recommend using a free tool like Ngrok.
- Expose your site over HTTPs with
ngrok- Run
ngrok http 3000 - This exposes your site on an Ngrok domain, for example
https://40be-88-97-18-163.ngrok.io
- Run
Once loaded, you should see the Plaid UI. Next, checkout using the phone number and OTP code displayed at the bottom of the screen.