Skip to content

Commit

Permalink
docs: Exemplo do método ofReplaceRecurrencyPixParcel adicionado
Browse files Browse the repository at this point in the history
  • Loading branch information
joao-muniz-efi committed Nov 29, 2024
1 parent eda963c commit a4ebccd
Showing 1 changed file with 22 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
const EfiPay = require('sdk-node-apis-efi')
const options = require('../../../credentials')

const efipay = new EfiPay(options)

let params = {
identficadorPagamento: 'urn:efi:ae71713f-875b-4af3-9d85-0bcb43288847',
}

let body = {
valor: "9.99"
}


// O método ofReplaceRecurrencyPixParcel indica os campos que devem ser enviados e que serão retornados
efipay.ofReplaceRecurrencyPixParcel(params, body)
.then((resposta) => {
console.log(resposta) // Aqui você tera acesso a resposta da API e os campos retornados de forma intuitiva
})
.catch((error) => {
console.log(error)
})

0 comments on commit a4ebccd

Please sign in to comment.