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
npm install --save eupago-integration
EUPAGO_API_KEY=xxxx-xxxx-xxxx-xxxx-xxxx
(required)
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)
const eupago = require('eupago-integration')();
eupago.createPaymentReference(totalAmount, yourReference, method, mobilePhoneNumber).then((response) => {
console.log(response)
});
MIT