Skip to content

Create a simple application to collect recurring payments for a monthly parking subscription. To implement the application, you’ll create customer profiles, link payment methods with customers, and set up recurring charges using a Node.js server.

License

Notifications You must be signed in to change notification settings

Rapyd-Samples/rapyd-recurring-charges-example

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rapyd recurring payment example

This project is an example implementation for collecting monthly parking payments using Rapyd Collect API and Node.js

Pre-requisites

  1. Node.js and npm installed on the computer.
  2. Code editor like VSCode.

Setting up locally

  1. Clone this repository
  2. Run npm install
  3. Create an account on Rapyd
  4. Open the Rapyd Client Portal in a web browser. Save access key and secret key
  5. Click Developers, on the left-navigation to open the Developers page.
  6. Select, Crednetials Details on the Developers page.
  7. Copy the Access key and Secret key using the copy button.
  8. Create a new .env file in the project and paste both the values
ACCESS_KEY=<copied-value>
SECRET_KEY=<copied-value>

Running the server

Run npm run dev at the project root to start the server and open http://localhost:3000 in a web browser.

Solution overview

Before starting the server implementation, it's essential to understand the solution and go through the architecture. The below diagram explains how the user, your Nodejs application, and Rapyd Collect API communicate together.

Archecture diagram

Get Support

About

Create a simple application to collect recurring payments for a monthly parking subscription. To implement the application, you’ll create customer profiles, link payment methods with customers, and set up recurring charges using a Node.js server.

Topics

Resources

License

Security policy

Stars

Watchers

Forks

Languages

  • JavaScript 87.6%
  • HTML 12.4%