cardpay.vn

1.0.2 • Public • Published

cardpay sdk

Install

npm

    # npm install --save cardpay.vn 

yarn

    # yarn add cardpay.vn 

Code

    const CardPay = require('cardpay.vn')
    const requester = new CardPay({uid: 6, secret: '61cc1f10ac99c2dbdc521f281f38ed09'})
 
    requester.doRequest({pin: '7502358726147', seri: '58332805575', card_type: 1, note: 'ghi chu'}).then(response => {
        console.log(response)
    })

ghi chú: (*) tham số bắt buộc

  • uid(*): Vui lòng thay đổi uid của bạn trong tham số tích hợp trong menu tích hợp thẻ cào
  • secret(*): Vui lòng thay đổi secret của bạn trong tham số tích hợp trong menu tích hợp thẻ cào
  • pin(*): Mã thẻ cào
  • seri(*): Seri thẻ cào
  • note: Ghi chú
  • card_type(*): Loại thẻ cào
id Loại thẻ
1 viettel
2 mobi
3 vina
4 gate
6 vietnammobile
8 Megacard
9 Oncash

Package Sidebar

Install

npm i cardpay.vn

Homepage

cardpay.vn/

Weekly Downloads

6

Version

1.0.2

License

ISC

Last publish

Collaborators

  • kingdarkness