The error when trying to get billing agreement token for not US locations

DWdeveloper
Contributor
Contributor

Hello, we are receiving such a PayPal error when trying to get a billing agreement token for non-US locations (like IT, etc.) for sandbox account “FTGXC96R23DHS”.

{ "name": "BUSINESS_ERROR", "debug_id": "97162070ca8f2", "message": "Business error", "information_link": "https://developer.paypal.com/webapps/developer/docs/api/#BUSINESS_ERROR", "details": [ { "name": "UNAUTHORISED ACCESS", "message": "Authorization failed due to insufficient permissions. Invalid Scopes" } ] }

 

Could you please check if any additional settings are required from your side or advise us on how to fix this issue?

Login to Me Too
34 REPLIES 34

MTS_Jennifer
Moderator
Moderator

Hello @odoihc,

Thank you for posting to the PayPal Merchant Community. Per your request, I have added future payments to the app associated with this sandbox account: YWM72E6THREF2.

Future payments scope is only needed if you are processing V1 Billing Agreements api. If you are using Save Payment Methods, which uses Vault API, you do not need to have the Future payments scope added to your rest api app.

Reference Transactions is not automatically enabled on live PayPal Accounts, so any live account requires Reference Transactions to be enabled, and the Future payments scope to be added to the live application. To get Future payments scope added to a live account, you will need to reach out by choosing contact us at this URL: https://www.paypal-techsupport.com/s/?language=en_US

Thank you,

Jennifer

MTS

PayPal

Login to Me Too

danwall1
Contributor
Contributor

Hi @MTS_Jennifer,

 

Can I please also have this enabled on my sandbox account?

 

Account: 8ARV44KS5PAB4

Debug ID: abb85c75b6764

 

Thank you

Login to Me Too

MTS_Jennifer
Moderator
Moderator

Hi @danwall1 

Thank you for contributing to the PayPal Merchant Community.

I have added the needed Future Payments Scopes to the Sandbox Rest API app associated with the debug id provided. You should now be able to process payments.

Thank you,

Jennifer

MTS

PayPal

 

Login to Me Too

limio-user
Contributor
Contributor

@MTS_Jennifer I'm running into the same issue could I please get the future payments scope added to Sandbox Rest API app? or is this something I can do myslelf?

 

Login to Me Too

MTS_Jennifer
Moderator
Moderator

Hello @limio-user 

Thank you for posting to the PayPal Merchant Community. Can you please provide your debug id or the merchant id for your sandbox business account? Once I have this information, I can locate your Rest API App and add the needed scopes.

Thank you,

Jennifer

MTS

PayPal

Login to Me Too

BH_FlixDev
Member
Member

We are experiencing the same issue as well with our sandbox app. We need the scope added.

 

How do we do this? It seems like there should be a way to do this without requesting it via a community forum.

Login to Me Too

MTS_Jennifer
Moderator
Moderator

Hi @BH_FlixDev ,

Thank you for contributing to this post. Can you please provide your debug id or your merchant id for your Sandbox Business Account? This will allow me to be able to locate the Sandbox Rest API app, so that I can add the needed scopes.

Thank you,

Jennifer

MTS

PayPal

Login to Me Too

JonoEmma
Member
Member

@MTS_Jennifer 

We received this error

{ errorName: "BUSINESS_ERROR", errorMessage: "Business error --- UNAUTHORISED ACCESS:Authorization failed due to insufficient permissions. Invalid Scopes", debugId: "36e3cdf5d1a34", … }

Could you check it..?

Thanks

Login to Me Too

MTS_Jennifer
Moderator
Moderator

Hi @JonoEmma ,

Thank you for posting to the PayPal Merchant Community. I have enabled your sandbox rest api app for Future Payments/Reference Transactions. You should now be able to process payments.

Thank you,

Jennifer

MTS

PayPal

Login to Me Too

wldev
Member
Member

@MTS_Jennifer 

 

Same problem for our sandbox account :
Debug ID :cef8b8f5ee944
Thank you

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.