0.0.6 • Published 2 months ago

payed-terminal v0.0.6

Weekly downloads
-
License
-
Repository
-
Last release
2 months ago

How to install

    npm install --save payed-terminal

How to use

  1. Import the library
import { PayedTerminal } from "payed-terminal"
  1. Create an instance using your application id
const appId = "your-app-id" //gotten from the payed web portal
const terminalInstance = new PayedTerminal(appId);
  1. Initiate a transaction
const transactionReference = "your-unique-transaction-reference"

const totalPrice = 120 //your price in Naira


//optionally call this endpoint to append lines to the printout
terminalInstance.appendToPrintOutOnSuccess({
    "Customer": "09064082341"
})


terminalInstance.initiatePayment(transactionReference, totalPrice)
  1. You can retrieve the terminal id
const terminalId = terminalInstance.getTerminalId()
0.0.6

2 months ago

0.0.4

1 year ago

0.0.3

1 year ago

0.0.2

1 year ago

0.0.1

1 year ago