question

mvalero avatar image
mvalero asked

Having issues with Playfab and Paypal only in the sandbox enviroment

While we can work with paypal in a production enviroment, we have not been able to make it work in a test enviroment for testing (sandbox).

In our succefull experience with production we already set up the paypal comunication with playfab in a production enviroment with the API billing_api1.playfab.com and changed the Merchant ID in the ADD-ONS section of playfab, everything worked well (but of course, we can test purchases here with real money).

At the time of trying the same in the paypal sandbox, we set the api in the paypal sandbox to billing-facilitator_api1.playfab.com , give it all permissions, changed the Merchant ID in the ADD-ONS section of playfab for the test user in sandbox. But we cant make the sandbox work.

If we for example ejecute https://xxxx.playfabapi.com/Client/PayForPurchase this is the result:



{

  "code": 400,
  "status": "BadRequest",
  "error": "FailedByPaymentProvider",
  "errorCode": 1015,
  "errorMessage": "PlayFab not authorized to perform acctions on given PayPal account.",
  "errorDetails": {
    "ProviderErrorCode": [
      "1"
    ],
    "ProviderErrorMessage": [
      "Error: 10002 - Authentication/Authorization Failed"
    ],
    "ProviderErrorDetails": [
      null
    ],
    "ProviderOrderId": [
      null
    ]
  }
}

10 |1200

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

1 Answer

·
brendan avatar image
brendan answered

That would be because we don't support PayPal sandbox yet. We will be adding support for it as soon as we can, but we don't have a date for that just yet. There's a thread here, detailing this: https://community.playfab.com/questions/257/206077118-Requesting-Help-with-implementing-Real-Money-Purchases-in-Unity-C-.html?page=2&pageSize=10&sort=oldest

9 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.

mvalero avatar image mvalero commented ·

Thank you for the quick response !

And until the support for the sandbox is there, do we have any alternatives or work arounds to test our purchases?

Cheers.

0 Likes 0 ·
brendan avatar image brendan mvalero commented ·

You would need to test in live until support for sandbox has been added.

0 Likes 0 ·
shyam avatar image shyam brendan commented ·

Hi @Brendan when will the support for sandbox be added.

0 Likes 0 ·
Show more comments
kendrickvillaruel avatar image kendrickvillaruel commented ·

Hi @Brendan, is PayPal sandbox supported yet?

0 Likes 0 ·
brendan avatar image brendan kendrickvillaruel commented ·

Nothing has changed since the last post on this topic. The focus for work in the commerce area is all on our newer commerce service (and UGC, as part of that).

1 Like 1 ·
Henry avatar image Henry commented ·

@Brendan Wow, over 3 years later and still no support? Testing PayPal with real transactions is not really convenient.

Not sure if I understand your last post? What does that mean for that feature?

0 Likes 0 ·
brendan avatar image brendan Henry commented ·

Unfortunately, our priorities are not driven by when something is entered into the backlog, but by the priority of the items in that backlog. In this case, and as stated above, we have had very few requests for this and so cannot justify prioritizing it over features that many developers have told us they need.

The last comment I made above refers to the fact that we are working on an all new commerce service, with far more flexibility (and a complete UGC offering). We'll be posting more about that to the blog as it becomes available.

0 Likes 0 ·
Henry avatar image Henry commented ·

Ok, thanks understood. I created a feature request:

https://community.playfab.com/idea/38663/support-paypal-sandbox.html

0 Likes 0 ·

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.