question

scottadams avatar image
scottadams asked

Xsolla integration PlayFabClientSDK.GetPaymentToken returns Invalid input parameters error

XSolla has been working fine for us. Now we get this error just on new players. Previously registered players have no issue.

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.

scottadams avatar image scottadams commented ·

deleted and moved below.

0 Likes 0 ·
scottadams avatar image
scottadams answered

They pushed a fix and the issue is now resolved for us.

10 |1200

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

JayZuo avatar image
JayZuo answered

Update: This issue has been fixed now. You should be able to get the token with GetPaymentToken API. Please have a test and let us know if there is anything wrong.

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.

scottadams avatar image scottadams commented ·

I received this from XSolla. Could you pass it along to your team?

the issue is on Playfab side.


For some reason before getting the token the Playfab server makes a user creation request:
https://developers.xsolla.com/publisher-api/user-management/create-user/

This request is failed because of the wrong user ID type. The user ID should be of a string type, but for some reason it was sent as INT.
Since this request if failed, the Playfab server can't proceed with the token requesting.


So please feel free to contact a Playfab support asking them to fix the user creation request: https://docs.microsoft.com/en-us/gaming/playfab/features/pricing/paidtechnicalsupport
1) STRING instead of INT type;

and / or
2) the user ID should be the same as they use for the token requesting;

1 Like 1 ·
JayZuo avatar image JayZuo ♦ scottadams commented ·

Thanks for sharing this information. I've forwarded it to our engineering team. They are working on a fix. When it's fixed, I'll update here.

0 Likes 0 ·
Valentin Cobelea avatar image
Valentin Cobelea answered

hi @Jay Zuo, any updates on this matter ?

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.

JayZuo avatar image JayZuo ♦ commented ·

We have had a fix. It's now waiting to be deployed. Once the issue is resolved, I'll update here.

0 Likes 0 ·
Valentin Cobelea avatar image Valentin Cobelea JayZuo ♦ commented ·

perfect! thx!

0 Likes 0 ·
Valentin Cobelea avatar image
Valentin Cobelea answered

actually, same issue for any calls to

PlayFabClientAPI.GetPaymentToken(new GetPaymentTokenRequest()...

PlayFab.Internal.PlayFabUnityHttp:OnResponse (string,PlayFab.Internal.CallRequestContainer) (at Assets/PlayFabSDK/Shared/Internal/PlayFabHttp/PlayFabUnityHttp.cs:214)
PlayFab.Internal.PlayFabUnityHttp/<Post>d__12:MoveNext () (at Assets/PlayFabSDK/Shared/Internal/PlayFabHttp/PlayFabUnityHttp.cs:153)
UnityEngine.SetupCoroutine:InvokeMoveNext (System.Collections.IEnumerator,intptr)

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.