I'm trying to use Playfab to process Paypal payments for my game. Browser/Javascript SDK. I'm following the docs at https://api.playfab.com/docs/non-receipt-purchasing .
StartPurchase and PayForPurchase succeed, I redirect to PurchaseConfirmationPageURL, login to Paypal with my buyer account and click "Pay now", and Paypal redirects to the return link I specified in the Playfab addon. All good so far.
Next step is ConfirmPurchase, but it returns "Express Checkout PayerID is missing". Payer ID isn't mentioned anywhere in the docs I read, or in the StartPurchase/PayForPurchase/ConfirmPurchase api docs. I've tried a few times with a few different payment sources. What am I doing wrong?
Full error response:
{"code":400,"status":"BadRequest","error":"FailedByPaymentProvider","errorCode":1015,"errorMessage":"Failed by payment provider","errorDetails":{"ProviderErrorCode":["1"],"ProviderErrorMessage":["Failure"],"ProviderErrorDetails":["FinalizeTransaction failed, Ack=FailureExpress Checkout PayerID is missing.\r\n"],"ProviderOrderId":[null]},"CallBackTimeMS":1864}