eupago-integration

1.0.2 • Public • Published

EuPago Integration npm version npm package

Create payment references using the API of EuPago.

You should have an active account on EuPago service. https://eupago.pt

You can also find the documentation of eupago api here: https://suporte.eupago.pt/pt/article/261-rest-api

Install

npm install --save eupago-integration

Required configuration

  • EUPAGO_API_KEY=xxxx-xxxx-xxxx-xxxx-xxxx (required)

Optional configuration

  • EUPAGO_REST_API_URL=https://clientes.eupago.pt/clientes/rest_api (default = https://clientes.eupago.pt/clientes/rest_api)
  • EUPAGO_DESCRIPTION_MBWAY="Your purchase at Store" (default = 'My Sample Store')
  • EUPAGO_ALLOW_DUPLICATED_PAYMENTS=0 (default = 0)

Usage

const eupago = require('eupago-integration')();
eupago.createPaymentReference(totalAmount, yourReference, method, mobilePhoneNumber).then((response) => {
    console.log(response)
});

License

MIT

Package Sidebar

Install

npm i eupago-integration

Weekly Downloads

1

Version

1.0.2

License

MIT

Unpacked Size

5.75 kB

Total Files

4

Last publish

Collaborators

  • sancheztvd