Skip to content

RafaelFerreiraTVD/eupago-integration

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Create Payment references using the API of EuPago service.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published