Criar pagamentro com cartão de crédito via API

NelsonSauer
Novo membro da Comunidade

Já cadastrei um cartão peça url POST: https://api.paypal.com/v1/vault/credit-cards/ com a seguinte estrutura

 

{"number": "XXX",
"type": "mastercard",
"expire_month": X,
"expire_year": X,
"cvv2": "X",
"first_name": "NOME",
"last_name": "X",
"billing_address": {
"line1": "Rua X",
"city": "X",
"country_code": "BR",
"postal_code": "X",
"state": "X",
"phone": "11 X"
},
"external_customer_id": "XXXX"

}

 

onde a mesma me retorna o id e o external_customer_id, mas quando tento fazer um pagamento na url com este cartão vinculado POST: https://api.paypal.com/v1/payments/payment, me retorna isso:

 

{
"name": "UNAUTHORIZED_PAYMENT",
"message": "Unauthorized payment.",
"information_link": "https://developer.paypal.com/docs/api/payments/#errors",
"debug_id": "47542a1ff267e"
}

Login to Me Too
1 RESPONDER 1

PayPal_Rony
Moderador
Moderador

Olá @NelsonSauer.

 

Neste caso, precisamos fazer algumas validações de segurança por telefone. Liga pra gente no 0800-047-4482 e escolha na URA para falar com o nosso time de Integração, que vamos te ajudar com isso. 😉

 

Rony

Login to Me Too

Haven't Found your Answer?

It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.