We are working with a publisher, and we need to implement their authentication system and payment verification callback.
We would like to see if it is possible for us to implement these features directly with PlayFab without needing to have our own intermediate server to communicate between the publisher's server and PlayFab.
Details:
1. Authentication System
- Client will use the Publisher SDK to log in, On success, it will return a publisher_access_token
- Client should then use the publisher_access_token to login to PlayFab, and on PlayFab side, it should call the publisher's REST API to obtain the publisher_user_id from the publisher_access_token, and then register/login to PlayFab with publisher_user_id
- Is there any way for us to implement the above feature directly with PlayFab? If not, what's the best way to implement it with our intermediate server?
2. Payment Verification Callback
- Client will use the Publisher SDK to initialize IAP, on IAP success, publisher's server will send a POST request to our custom server, or PlayFab (if possible)
- The POST request contains the order_id, product_id, signature, timestamp, etc.
- We should check if the order_id has been processed, and verify the purchase based on the signature and a private AppKey
- We grant the player the item if verification success and return "success" for the post request\
thank you