Register Login

Players and purchases

Link the player, then set the R3FTO value in your billing call.

Step 5. Players and purchases

  1. When the player is signed in to your app, call client.setGamePlayerId with your own player account ID.
  2. Before checkout, call client.purchaseBenefit with your product ID to see if the player gets a discount, then client.createPurchaseContext.
  3. Call client.googleCorrelation(). It returns a value for an obfuscated field of BillingFlowParams that your app does not use yet. Set it there in your normal billing call. The value is returned only once, on the call that issues it, so keep it for the player.
  4. If your app already fills an obfuscated field, register your own value with client.adoptGoogleCorrelation(value) instead. R3FTO never replaces it.

The SDK never starts billing, never acknowledges or consumes a purchase and never grants an item. R3FTO uses the obfuscated value to match a Google Play purchase to the player. A purchase made outside your app has no such value and cannot be matched.

Documentation

Back to site