Bom dia, estou testando o pagamento com cartão de crédito no modo sandbox, estou gerando o payment_token e installments e ao utilizar o metódo
payCharge
com o body
var body = {
payment: {
credit_card: {
installments: installments,
payment_token: paymentToken,
billing_address: address,
customer: {
name: client.name,
email: client.email,
cpf: client.cpf.replace(/\D/g, ''),
birth: birth,
phone_number: client.whatsapp.replace(/\D/g, ''), // Only number
},
},
},
};