@rubenskuhl boa noite tudo bão? Tu sabe porque retorna :
{
code: 3500034,
error: 'validation_error',
error_description: {
property: '/id',
message: 'Tipo inválido: string (esperado integer).'
}
}
apartir daqui :
js
const responseCobranca = await efipay.createCharge([], chargeInput);
const cobrancaId = parseInt(responseCobranca.data.charge_id);
const pagamentoCartao = {
payment: {
credit_card: {
customer: {
name: "Gorbadoc Oldbuck",
cpf: "94271564656",
email: "
[email protected]",
birth: "1990-08-29",
phone_number: "5144916523"
},
installments: 1,
payment_token: "",
billing_address: {
street: "Avenida Juscelino Kubitschek",
number: "909",
neighborhood: "Bauxita",
zipcode: "35400000",
city: "Ouro Preto",
complement: "",
state: "MG"
}
}
}
};
const responseDefinePayMethod = await efipay.definePayMethod([], pagamentoCartao);
estou tentando adicionar um metodo de cartão ao pagamento