I'm trying to use payment Vault from paypal payment. I'm following this https://developer.paypal.com/docs/integration/direct/vault/#store-credit-card
I call: https://api.sandbox.paypal.com/v1/payments/payment
{
"id":"CPPAY-13U4fds67758H032001PKPIFQZI",
"intent":"sale",
"payer":{
"payment_method": "credit_card",
"funding_instruments":[
{
"credit_card_token":{
"credit_card_id":"CARD-3S3021595U985430TLCM4HLA"
}
}
]
},
"transactions": [
{
"amount":
{
"total": "1.00",
"currency": "USD"
},
"description": "Testando pagamento cartao Vault."
}]
}
But I'm getting this message:
{
"name": "UNKNOWN_ERROR",
"message": "An unknown error occurred.",
"information_link": "https://developer.paypal.com/webapps/developer/docs/api/#UNKNOWN_ERROR",
"debug_id": "64f99d6ec2b1f"
}