Skip to content

Latest commit

 

History

History
26 lines (21 loc) · 583 Bytes

README.md

File metadata and controls

26 lines (21 loc) · 583 Bytes

Hosted Fields

A Braintree Hosted Fields Integration utilizing node.js

Installation

Use npm to install dependencies

npm install

Input API credentials in a .env file

BT_ENVIRONMENT='Sandbox' OR 'Production'
BT_MERCHANT_ID='your_merchant_ID'
BT_PUBLIC_KEY='your_public_key'
BT_PRIVATE_KEY='your_private_key'

Start server on localhost:3000

npm start

Usage

Navigate to localhost:3000 to access payment screen

Navigate to localhost:3000/transactions to view transaction history over the last 90 days