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
]
}
}