question

Frank Slofstra avatar image
Frank Slofstra asked

How to process an offerwall postback url

I would like to add an offerwall to my game. The 3rd party only rewards through a server to server postback call, they will be calling it using this url format: http(s)://site.com/somepath?uid=XXX&reward=XXX&token=etc..

I am looking for a way to process the postback and award the player some currency based on the incoming request.

I can think of 3 solutions, does anyone know which one is actually possible for this:

1. Is there any way to handle this with the regular Playfab tooling?

2. Is there any way to handle this by letting the 3rd party call a Playfab url which is processed by a custom cloudscript?

3. Is it possible to create an Azure cloud function for this which processes the results and updates the player currency? (Is it possible to assign a url path to this Azure function so that it's reachable by 3rd party?)

I hope that someone can put me in the right direction to figure this out.

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

Azure Function is able to make calls to external server, and you can implement any required SDK there, including PlayFab SDK. However, Azure Function or the deprecated legacy Cloud Script is serverless, it cannot keep long-time running and work as an http listener.

Azure Function can be executed by 3rd party as long as you use the specified URL generated by Azure.

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.