api-pipago-sdk-node
v1.0.13
Published
Api on Nodejs to connect clients of the Brazilian payment system PIPAGO.
Downloads
1
Readme
api-pipago-sdk-node
A nodejs module for integration of your backend with the payment services provided by Pipago.
Um módulo nodejs para integrar seu backend com os serviços de pagamento da Pipago.
Instalação/Installation
$ npm install api-pipago-sdk-node
Uso Básico/Basic usage
Importe o módulo/Importe o módulo::
import { PipagoSdkNode } from 'api-pipago-sdk-node';
const api = new PipagoSdkNode({
client:id:'your client id',
password:'your client password'
});
Crie uma cobrança tipo Pix/Create a charge type Pix:
const payload: IPixPayload = {
merchant_id: 'your transaction id',
type: 'PIX',
devedor: {
cpf: '702.053.262-63',
nome: 'João Pirez'
},
amount: 10.0
}
return this.pipagoSdkNode.pix_create(payload)
.pipe( map((response: any) => console.log(response))
response:IPixResponse = {
data: {
reference: '1651688846000SCIRQD53V74gn',
cob: { qrcode: { qrcode:'qrcode-string' }},
status: 'PENDING',
timestamp: 1651688849347,
expire: 1651692449347,
transaction_id: '6272c591e52dc0001471bf9e'
}
}