Skip to content

This repo includes the full-stack code for a JavaScript application that uses Node.js to make a sale using Payments Hub's Browser Post API, and perform a refund using North's Custom Pay API.

Notifications You must be signed in to change notification settings

NorthDevelopers/North-Node-Browser-Post-Custom-Pay-API

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Securely Embed Payments in a NodeJS App and Accept Refunds

This is a JavaScript application that uses Node.js to demonstrate accepting a payment with an ecommerce payment form using North's Browser Post API, then using the returned transaction token to perform a refund on the sale using North's Custom Pay API. The code in this repository handles both the front-end and back-end payment process.

Get Sandbox Credentials

To get started, create a free North Developer Portal account. This will allow you to get the sandbox credentials that are required to test the app. Log in to your account to view the official Browser Post API Integration Guide and Custom Pay API Integration Guide, then contact North's Sales Engineering team to get sandbox credentials added to your Developer Portal account.

Follow Along with the Tutorial

When you're ready to start building your app, you can follow along with this tutorial for step-by-step instructions.

Completed App

Your completed ecommerce app will look similar to the following. Click the Pay button to open the payment form:

payments-hub-node-browser-post-custom-pay-api

Click the "Submit" button to submit a payment:

payments-hub-node-browser-post-custom-pay-api-2

On the payment result page, customers have the option to request a refund:

payments-hub-node-browser-post-custom-pay-api-3

The results of the refund will be displayed after processing is complete:

payments-hub-node-browser-post-custom-pay-api-4

About

This repo includes the full-stack code for a JavaScript application that uses Node.js to make a sale using Payments Hub's Browser Post API, and perform a refund using North's Custom Pay API.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published