let body = {
payment: {
banking_billet: {
expire_at: expireAt,// '2024-09-20',
customer: {
name: name,//'Gorbadoc Oldbuck',
email: email,// '[email protected]',
cpf: cpf,//'94271564656',
birth: birth,// '1977-01-15',
phone_number: phoneNumber,//'5144916523',
},
},
},
items: [
{
name: nameProduct,
value: parseInt(total),
amount: 1,
},
],
shippings: [
{
name: 'Frete grátis',
value: 0,
},
],
}
const result = await efipay.createOneStepCharge([], body);
payment: {
banking_billet: {
expire_at: expireAt,// '2024-09-20',
customer: {
name: name,//'Gorbadoc Oldbuck',
email: email,// '[email protected]',
cpf: cpf,//'94271564656',
birth: birth,// '1977-01-15',
phone_number: phoneNumber,//'5144916523',
},
},
},
items: [
{
name: nameProduct,
value: parseInt(total),
amount: 1,
},
],
shippings: [
{
name: 'Frete grátis',
value: 0,
},
],
}
const result = await efipay.createOneStepCharge([], body);