question

shyam avatar image
shyam asked

How to resolve the "PlayFab not authorized to perform acctions on given PayPal account" error?

Hi,

I have added "billing_api1.playfab.com" under third party permissions. But I am getting error with the PayForPurchase() function. The error is given below :

/Client/PayForPurchase PlayFabError(FailedByPaymentProvider, PlayFab not authorized to perform acctions on given PayPal account., 400 BadRequest - Details: ProviderErrorCode: 1 | ProviderErrorMessage: Error: 10002 - Restricted account | ProviderErrorDetails:  | ProviderOrderId:  | )

Also what are the third party permissions necessary to get it working. I have currently enabled all the permissions.

1 comment
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Andy avatar image Andy ♦♦ commented ·

Unfortunately, I don't have any specific knowledge about working with PayPal. While I'm digging into it, though, I wanted to make sure you're aware of PayPal's documentation on this subject (https://www.paypal.com/us/smarthelp/article/why-did-i-get-api-error-code-10002-ts1030). If you're able to get what you need there, let us know so others can benefit.

0 Likes 0 ·

1 Answer

·
Andy avatar image
Andy answered

Digging into this more, the "Restricted Account" portion of the error message leads me to believe you need to chat with PayPal's customer service. From what you've described, you've added the add-on and you've added the right permissions in PayPal's Third-party permissions UI. I'll repost our instructions below just to be sure, but it sounds like you've followed them.

As to required permissions, the only thing we should need is "Use Express Checkout to process payments."

PayPal instructions from our Add-ons page:

Create your Express Checkout account with PayPal by visiting their signup page. Once you have an account, install this add-on, and enter your merchant ID or email address below. You will now be able to process real-money payments through PlayFab using PayPal.

Next, set up the third-party permissions in PayPal so that we can act on your behalf. For live payments, set your account to allow "billing_api1.playfab.com" to process Express Checkout payments.

4 comments
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

shyam avatar image shyam commented ·

Thanks @Andy. I will contact PayPal about the issue.

I am working in Unity. Please suggest a way to build the PayPal interface.

0 Likes 0 ·
Andy avatar image Andy ♦♦ shyam commented ·

You'll want to use an HTML control to host the Express Checkout interface using the uri returned by the PayForPurchase call. I think there are quite a few possibilities in the asset store.

1 Like 1 ·
shyam avatar image shyam Andy ♦♦ commented ·

Thanks @Andy. We used UniWebView Unity package to load the purchase confirmation url and were able to successfully test live payment.

0 Likes 0 ·
Show more comments

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.