question

Sukjae Lee avatar image
Sukjae Lee asked

How do I validate Google Play receipts with a blueprint?

I would appreciate it if someone could show me an example of a Blueprint.

I did as below, but I don't know if this is the right answer.

unreal
aaa234.jpg (371.6 KiB)
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

·
Seth Du avatar image
Seth Du answered

It looks fine, however, there are few things you may note. The Currency code should be in ISO format, I am not sure If the purchase in your code will return currency code in that format. In addition, if the RM is used, which is actually US dollars in PlayFab, the PurchasePrice usually need to multiply by 100 because it is stored as cents.

Please refer to: https://docs.microsoft.com/en-us/gaming/playfab/features/commerce/economy/getting-started-with-unity-iap-android. Apart from validating receipts, currency code and purchase price in the requests of validate-purchase-related API calls will be more like keeping a record of a player’s RM purchase for later VTD reference.

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.