gateway-getnet
v1.0.0
Published
Gateway pagamento GetNet
Downloads
6
Readme
gateway-getnet
Installation
npm install gateway-getnet
Usage
Use to make payment:
var gatewayGetnet = require('gateway-getnet');
function checkout(body) {
gatewayGetnet.payment(body, (err, result) => {
console.log(err, result)
})
}
Body
{
"order_id": INTEGER,
"authentication": {
"sellerId": STRING,
"authorization": STRING,
"ipAddress": STRING,
"deviceId": STRING
},
"customer": {
"id": STRING,
"name": STRING,
"email": STRING,
"document_type": STRING,
"document_number": STRING
},
"credit": {
"amount": FLOAT,
"number_installments": INTEGER,
"card": {
"holder_name": STRING,
"number": STRING,
"security_code": STRING,
"brand": STRING,
"expiration": STRING
}
}