question

vince avatar image
vince asked

Get OrderID from the Client?

Hi,

We have a purchase in our Real Money store that gives users a random item from a pre-selected group of items. We're working on the iOS validation, and it seems we can't get the OrderID to figure out what is the item that was purchased, we can only see the TransactionID. Is there a way to get the OrderID on the client to know exactly what item was randomly chosen, instead of going through the player inventory and figuring out what was the most recent item added?

Thank you!

Player Inventory
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.

vince avatar image vince commented ·

By the way, we are not using StartPurchase from PlayFab, we use another provider to verify the purchases, and then use ValidateIOSReceipt to add the item in the Inventory.

0 Likes 0 ·

1 Answer

·
brendan avatar image
brendan answered

So, receipt validation (and entitlement checks, for console developers) are distinct from the integrated payment provider system we have with the StartPurchase flow. For the StartPurchase process, the OrderId is used to track the purchase throughout its lifecycle. But with receipt validation, we're not part of the purchase process at all - we're fulfilling the goods based upon secure communication with the payment provider. So the unique order identifier for those situations is in the receipt itself. In the case of iOS, it's the transaction_id in the receipt details, as you say.

The issue that you're facing is determining what item was added. We specifically have a work item open to add the item(s) added as a result of a receipt validation operation to the response information for that process. We'll have that in the service as soon as we can.

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.