UNAUTHORIZED_PAYMENT

expo
Contributor
Contributor

Hi,

 

I have issues with Direct Credit Card processing via REST API, so..

 
Given:

  • PayPal Pro account
  • PayPal REST API
  • Live mode
  • Location - US

Request:

POST https://api.paypal.com/v1/payments/payment
(with correct Auth Token)
{
    "intent": "authorize",
    "payer": {
    "payment_method": "credit_card",
    "funding_instruments": [
        {
            "credit_card_token": {
                "credit_card_id": "CARD-XXXXXXXXXX",
                "payer_id": "57ecbbed656c78519a28382c"
            }
        }]
        },
        "transactions": [
            {
                "amount": {
                    "total": "1.00",
                    "currency": "EUR"
                },
            "description": "This is the payment transaction description."
        }
    ]
}


Response:

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


What's wrong with that?

Also, in legacy topics often can see "Enable Direct Credit Card processing" option, which is not exists on my dashboard.

Please help -)
 

 

Login to Me Too
1 REPLY 1

aadilkeshwani
Contributor
Contributor

Any updates? I am having same issue

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.