Permission denies API

Kreigher
Contributor
Contributor

Hi guys. I am retrieving access token passing only client_id (need to pass it cause i am saving in database and don't want to save secret too). I have as response this scopes:

"scope""https://api.paypal.com/v1/payments/.* openid https://api.paypal.com/v1/vault/credit-card/.* https://...https://api.paypal.com/v1/vault/credit-card"

I create and order with a smart button with authorize intent. When i want to capture the payment with the only client id token i have a 

"PERMISSION_DENIED" error (it works if i create a client_id:secret token). But in my scopes i have payments enabled. So why i am not authorized? Thanks.
Login to Me Too
2 REPLIES 2

MTS_Chiranjeevi
Moderator
Moderator

Hi @Kreigher,

 

Thank you for contacting PayPal community.

 

We apologize for any inconvenience.

 

The use of the PayPal REST /vault APIs to accept credit card payments is restricted because the merchant must enable, but can no longer get approved for, the REST direct credit cards (DCC) feature. Instead, you can accept credit card payments with Braintree Direct

 

Please refer the guide link.

 

Sincerely,

Chiranjeevi

Login to Me Too

Kreigher
Contributor
Contributor

Thank you for reply. I don't want to use the vault api, i just need to use the payment api to capture an order. It works with clientid:secret token but not with clientid token (even if in the scope of access token seems i can).

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.