shahry-sdk

1.0.1 • Public • Published

Shahry Payment SDK : NodeJS

Build Status

this SDK provide single method getPaymentLink that generates a URL for processing payment with shahry payment gateway.

Before starting

Before starting, this library depends on some Environment Variables that need to be presented before usage.

all these parameters should be presented by Shahry

  • SH_MERCHANT: Shahry's merchant ID
  • SH_SECRET: merchant's Secret key.
  • SH_ACCESS_CODE: merchant's secret access code.
  • SH_PAYMENT_GATEWAY: URL for shahry payment gateway.

Get Started

  • include the library npm i shahry-sdk
  • import the library into your code const {getPaymentLink} = require('shahry-sdk');

API

getPaymentLink (amount, merchantTxnRef, returnUrl)

  • amount: the order amount in EGP.
  • merchantTxnRef: unique payment order id identified by merchant.
  • returnUrl: the URL to redirect back after success or failure.

Readme

Keywords

Package Sidebar

Install

npm i shahry-sdk

Weekly Downloads

2

Version

1.0.1

License

MIT

Unpacked Size

19 kB

Total Files

8

Last publish

Collaborators

  • aigdonia