question

Darius Vu avatar image
Darius Vu asked

How to develop the activation code for app using Playfab?

Dear support team,

I want to develop the activation code for my app. If users purchase my product then they will receive the activation code that is writen on the product from us. They will put the code or using a mobile camera to scan QR code to verify the account and enable the features in the app. You can see the reference picture below:

So could you tell me how to develop this function using Playfab server?

Thank you so much for your support!!!

capture.png (247.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

·
brendan avatar image
brendan answered

Who is the payment provider for this? For purchases made in any platform where there's a receipt-based mechanism for verifying purchases (Android, iOS, Playstation, Xbox, Windows Store), you can just use the receipt in the related API call (like https://docs.microsoft.com/en-us/rest/api/playfab/client/platform-specific-methods/validatewindowsstorereceipt?view=playfab-rest). If it's Facebook, Paypal, Steam, or Xsolla, you would use the StartPurcase flow (https://docs.microsoft.com/en-us/gaming/playfab/features/commerce/economy/non-receipt-payment-processing). In both of those scenarios, there's no need to have a verification code. Just set up the item in the catalog so that you can reward it for the purchase.

If you are the provider directly, you're going to have to provide a web service that can be used to verify purchases, and query it via Cloud Script to accomplish this.

3 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.

Darius Vu avatar image Darius Vu commented ·

Hi Brendan,

No it doesn't relate to the payment provider. I just want to develop the activation code in my app as the video below:

https://www.youtube.com/watch?v=90VSxNCefk8

People will buy our products and the code (or QR code) is written on the box and user can use the code or scan the QR code to activate the features of app. I guess that we have to store the code in server for verification.

So how to develop the code list/ functions using Playfab server?

0 Likes 0 ·
Sarah Zhang avatar image Sarah Zhang Darius Vu commented ·
0 Likes 0 ·
Darius Vu avatar image Darius Vu Sarah Zhang commented ·

Hi Sarah,

Thank you so much for your answers. I checked this feature, it is not correct with my purpose. Because we only generate only 100 coupons and it is limited.

I want to store the list of active codes (around 100,000 active codes) to provide for users when they buy our products (as the video).

(https://www.youtube.com/watch?v=90VSxNCefk8)

When they scan/ write the code in the app then it will check and verify the code that is stored in the server. If the code is correct then the app is enable for using.

Could I do it in the Playfab server? And how to do it?

Thank you so 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.