Skip to content
Mohammad Naghavi edited this page Jun 17, 2014 · 25 revisions

Global

Type Definitions

errorCallback(error)

This is the global pattern for error callbacks

Parameters:
Name Type Description
error errorType
Source:

errorType

The error data struture used for error callback

Type:
  • Object
Properties:
Name Type Description
errorCode int

one of the error codes defined with ERR_*

msg string

a textual message intended for developer in order to make debuging easier

nativeEvent Object

additional information mainly intended for debug process which will not be present if the source of error is not IAB

Source:

nativeEventType

The native event part of the error structure passed to error callback

Type:
  • Object
Properties:
Name Type Description
IabResponse int

response code coming from IabHelper

IabMessage string

message text coming from IabHelper

Source:

optionsType

Type:
  • Object
Properties:
Name Type Argument Description
true boolean <optional>

showLog wether to show logs or not, this is strongly recommended to be set to false for production

Source:

purchaseListType

Type:
  • Object
Source:

simpleSuccessCallback()

This is a simple callback called with no parameter on success

Source:

Generated with wicked.
  • Installation
  • [Stores setup](Stores setup)
  • [Purchase verification](Purchase verification)
  • [Testing plugin](Automatic tests)
  • [API documentation](API documentation)
  • Debugging

Philosophy

  • Roadmap
  • [Compatibility issues](Compatibility issues)

API

Clone this wiki locally