This is an example of the Braintree API using the official Node SDK in Express to set up a subscription.
This branch includes a lot of files for the purpose of testing. To see a simplified example please switch to the simplified branch.
This demo performs the following technical implementations:
- Pulling existing plans from Braintree server
- Creating a new customer
- Processing a subscription
This demo uses
- Node 0.10.31 or higher
- The Express web framework
- The Braintree Node.js SDK
- Run
npm install
to install all dependencies - Run
npm start
to start the Express app - Visit
http://127.0.0.1:3000/
in your browser - Fill in the form using PayPal or a Credit Card:
- PayPal
- Email: us-customer@commercefactory.org
- Password: test1234
- Credit Card
- Number:
4111 1111 1111 1111
- CVV:
123
- Expiration date:
11/2020
- Number:
- PayPal
- Click Subscribe Now
- You will receive a message that says "Subscription Successful"
- Requirement: CasperJS
- Run
npm test
to start the test