Welcome!
Nab Velocity Hosted Payment Form.
This is a react component that acts as a wrapper for theThere is no need to add script tags in your index.html.
Props:
Name | Type | Required | Description |
---|---|---|---|
onProcessPayment | function | YES | Payment success callback |
component | string / Component(function) | NO | Button component that triggers the form (default <button> ) |
amount | number | YES | Transaction ammount of money |
text | string / element | NO | Button text |
terminalProfileId | string | YES | Your Nab Velocity's POS system id |
invoiceNum | string | NO | Inner POS System invoice number |
description | string | NO | Payment descriptor |
string | NO | Customer email | |
billingName | string | NO | Customer name |
billingAddress | string | NO | Customer address |
billingCity | string | NO | Customer city |
billingState | string | NO | Customer state (abbreviation) |
billingPostalCode | string | NO | Customer postal code |
Example:
import React Component from "react";import NabVelocity from "react-nab-velocity-checkout";import Button from "./Button"; { return <div> <NabVelocity = = ="234" ='320329304' ="Awesome product" ="johndoe@mail.com" ="John Doe" ="742 Evergreen Terrace" ="Miami" ="FL" // ! ="Pay Your Awesome Product" ="12345" /> </div> ; } ;