Skip to content

Payeer payment gateway API for Node.js

Notifications You must be signed in to change notification settings

mohamed2028/payeer-node

 
 

Repository files navigation

payeer-node Build Status npm version

Payeer payment gateway API for Node.js

Installation

  • npm install payeer-node

Examples

  1. Generate payment page url:
const payeer = new Payeer({
  shopId: process.env.PAYEER_SHOP_ID,
  secretKey: process.env.PAYEER_SECRET_KEY,
  callbackUrls: {
    success_url: 'https://test.com/success',
    fail_url: 'https://test.com/fail',
    status_url: 'https://test.com/status'
  }
});

const orderId = '12345';
const url = payeer.generatePaymentPageUrl(
  orderId,
  Money.fromDecimal(500, 'EUR')
);
  1. Process Payeer webhook:
const callback = payeer.parsePaymentCallback(request.body);

expect(callback.orderId).toEqual(50);
expect(callback.isPaymentSuccess).toBeTruthy();

Please refer tests for details.

Contribution

  • git clone
  • npm install
  • npm test

About

Payeer payment gateway API for Node.js

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 96.0%
  • JavaScript 4.0%