question

Henry avatar image
Henry asked

How to fill Start Purchase Items in Unreal Blueprint

Hi

I'm at the StartPurchase implementation where I have to say what item was purchased. I can't figure out how to correctly create that item.

Based on the API documentation I can (have to) set Annotation, ItemId, Quantity and UpgradeFromItems.

Checking out forum C++ implementations people only set ItemId and Quantity.

Whatever I try I get "Invalid input parameters".

This is what I tried last but with the same result.

unbenannt.jpg (65.5 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

·
Citrus Yan avatar image
Citrus Yan answered

First, you’ll need to add a new variable whose type is PlayFab Json Object:

After that, do the following in Blueprint to Construct the valid request:

Moreover, are you trying to implement real money purchase? If that’s the case, this tutorial might help you with the whole process: https://docs.microsoft.com/en-us/gaming/playfab/features/commerce/economy/non-receipt-payment-processing

Otherwise, if you are trying to implement purchasing via Virtual Currency, the Client/PurchaseItem API would be enough.


var.png (5.6 KiB)
blueprint.png (228.4 KiB)
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.

Henry avatar image Henry commented ·

Awesome. Thanks for the solution and the link. Everything works now incl. PayPal payment.

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.