Skip to content

Latest commit

 

History

History
 
 

node

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

API example: Node + Express

This small application demonstrates how you might set up a web server using Node.js and Express with RESTful routes to accept your Recurly.js form submissions and use the tokens to create and update customer billing information without having to handle credit card data.

This example makes use of the node-recurly module, an unofficial node client library for Recurly's v2 API.

Note that it is not necessary to use the Express framework. In this example it is used to organize various API actions into distinct application routes, but one could just as easily implement these API actions within another application framework.

Routes

Use

  1. Start the server
$ npm i
$ node app
  1. Open http://localhost:9001