question

court avatar image
court asked

Xsolla: StartPurchase Provider

Hi -

I'm having some issues getting Xsolla integration working. I'm following Non-Receipt Payment Processing tutorial at https://api.playfab.com/docs/tutorials/landing-commerce/non-receipt-payment-processing . I have the Xsolla Add-on active in my title. When I issue the first request in the tutorial (StartPurchase), I don't get a Xsolla payment provider -- the only thing I see is "Test". An example request:

{
  "CatalogVersion": 1,
  "Items": [
    {
      "ItemId": "bundle_game",
      "Quantity": 1,
      "Annotation": "totally buying something"
    }
  ]
}

And the response:

{
    "code": 200,
    "status": "OK",
    "data": {
        "OrderId": "FE9CB4BF16BAA331",
        "Contents": [
            {
                "ItemId": "bundle_game",
                "ItemClass": "bundle",
                "ItemInstanceId": "F4617DEA8FEF2C62",
                "DisplayName": "Game and skins bundle",
                "VirtualCurrencyPrices": {
                    "RM": 499
                }
            }
        ],
        "PaymentOptions": [
            {
                "Currency": "RM",
                "ProviderName": "Test",
                "Price": 499,
                "StoreCredit": 0
            }
        ],
        "VirtualCurrencyBalances": {}
    }
}

The ProviderName "Test" seems weird to me. If I go ahead and use that when calling the next API, PayForPurchase, I get an error 500 (Internal Server Error):

{
  "OrderId": "FE9CB4BF16BAA331",
  "Currency": "RM",
  "ProviderName": "Test"
}

And the response:

{
    "code": 500,
    "status": "InternalServerError",
    "error": "InternalServerError",
    "errorCode": 1110,
    "errorMessage": "An unexpected error occured while processing the request.",
    "errorHash": "65f698483147466176a4d10b69afe74a",
    "errorDetails": {
        "RequestID": [
            "662d3223ab5a4819bf790c37dc37bd05"
        ]
    }
}

Any help would be appreciated. Thanks!

-Courtland

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.

court avatar image court commented ·

I suspect something is amiss with the Xsolla integration or the setup on my account. I started integrating PayPal and everything seems to be working appropriately with the same calls.

Which payments provider receives the heaviest usage (on PC)?

Thanks

-Courtland

0 Likes 0 ·
brendan avatar image
brendan answered

We updated the non-receipt tutorial the other day, to account for changes we had to make to the Xsolla integration. Could you have a look at it, and follow the steps for the Xsolla flow it describes? Specifically, StartPurchase is not part of the Xsolla flow at all, at this point.

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

brendan avatar image brendan commented ·

As to the question on payment providers on PC, currently we see the most purchases with PayPal and Steam, but there are plenty with Facebook as well. To be clear, the Xsolla option is a fairly recent introduction, and we expect to see usage of it increase quite a bit, given the expanded range of payment options it provides for non-US folks.

0 Likes 0 ·
court avatar image court commented ·

You're totally right! I must have been working off of the old tutorial! Thanks for clarifying!

0 Likes 0 ·
duartedd avatar image
duartedd answered

Note: Documentation appears to need an update (for those who stumble upon this)

follow the guide here as their new API system uses the cloudscript:

https://developers.xsolla.com/sdk/unity/use-third-party-servers/add-script/

10 |1200

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

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.