Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

alepay

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

alepay

`alepay` is a SDK for communicating with Alepay payment gateway in nodejs and created by oneV.travel - a travel marketplace of Vietnam.

  • 0.1.1
  • npm
  • Socket score

Version published
Weekly downloads
9
decreased by-74.29%
Maintainers
1
Weekly downloads
 
Created
Source

alepay is a SDK for communicating with Alepay payment gateway in nodejs and created by oneV.travel - a travel marketplace of Vietnam.

Prerequisites

  • node version >= 8.x.x

Notes

This library only works in server side (nodejs) only.

Installation

npm install --save alepay

or

yarn add alepay

Usage

var Alepay = require('alepay');

var alepay = new Alepay({
  env: 'sandbox', // or 'live' for production
  token: TOKEN,
  encryptedKey: ENCRYPT_KEY,
  checksum: CHECK_SUM,
});

alepay.createRequestPayment({
  orderCode: "O-SGT-2034",
  amount: 4960000,
  currency: "VND",
  orderDescription:
    "Thanh toán 10% - Tour Mauritius - Bản Sao Của Thiên Đường",
  totalItem: 1,
  checkoutType: 0,
  returnUrl: "https://success-callback-url.com",
  cancelUrl: "https://cancel-callback-url.com",
  buyerName: "Trần Butterfly",
  buyerEmail: "abc@gmail.com",
  buyerPhone: "0904121212",
  buyerAddress: "dia chi nguoi mua",
  buyerCity: "HO CHI MINH",
  buyerCountry: "Viet Nam",
  paymentHours: 1,
  allowDomestic: true
})
  .then(response => {

  })

FAQs

Package last updated on 25 Apr 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc