redeemCoupon

fun redeemCoupon(    callback: RedeemCouponCallback,     couponCode: String,     selectedUnitItems: Pair<String, String>? = null)

Redeems the coupon code and delivers a reward to the user in one of the following ways:

  • to their inventory (virtual items, virtual currency packages, or bundles)

  • via email (game keys)

  • to the entitlement system (game keys)

See also

Parameters

couponCode

Unique case sensitive code. Contains letters and numbers.

selectedUnitItems

The reward that is selected by a user. Object key is an SKU of a unit, and value is an SKU of one of the items in a unit.

callback

Callback with received items.

Sources

Link copied to clipboard