question

Stefan Perales avatar image
Stefan Perales asked

The "FConfirmPurchaseResult" struct in the Unreal Engine PlayFabSDK is missing the "Status" field

It looks like the "Status" field is missing in the "FConfirmPurchaseResult":
https://github.com/PlayFab/UnrealMarketplacePlugin/blob/master/4.26/PlayFabPlugin/PlayFab/Source/PlayFabCpp/Public/Core/PlayFabClientDataModels.h#L1499-L1532


It seems that this would render the "ConfirmPurchase" function unusable.


I'm following along with the Non-Reciept Payment Processing tutorial here: https://docs.microsoft.com/en-us/gaming/playfab/features/commerce/economy/non-receipt-payment-processing#last-step-confirm-the-purchase

However, I don't see any way to begin polling the status of a purchase using that API call.


Is this a bug or am I going about this the wrong way? Thanks!

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

·
Citrus Yan avatar image
Citrus Yan answered

Referring to its API reference: https://docs.microsoft.com/zh-cn/rest/api/playfab/client/player-item-management/confirmpurchase?view=playfab-rest#confirmpurchaseresult, the “FConfirmPurchaseResult” struct is correct. GetPurchase is the way to poll the status of a purchase, seems that the doc is a little mistaken, I'll talk to the doc team regarding this, sorry for the confusion caused.

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.

Stefan Perales avatar image Stefan Perales commented ·

Ah, that's the piece I was missing. I understand the correct flow and my mistake now. Thank you very much!

0 Likes 0 ·

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.