recordResolution

Miquel Martín edited this page Dec 23, 2014 · 1 revision

Records the purchase status and conversion events.

tappx.recordResolution(purchaseId, resolution, success, fail);
  • purchaseId: The id of the purchase (you will get it when tappx.events.onInAppPurchase event is called).
  • resolution: The result of a purchase. The value can be:
    • tappx.PURCHASE_RESOLUTION.RESOLUTION_CANCELED: A resolution indicating the purchase was canceled.
    • tappx.PURCHASE_RESOLUTION.RESOLUTION_FAILURE: A resolution indicating the purchase failed.
    • tappx.PURCHASE_RESOLUTION.RESOLUTION_INVALID_PRODUCT: A resolution indicating the product is invalid.
    • tappx.PURCHASE_RESOLUTION.RESOLUTION_SUCCESS: A resolution indicating the purchase was successful.
  • success: success callback.
  • failure: failure callback.