InitAppProducts()

Syntax

InitAppProducts(ApiKey$, Callback)
Description
Initialise the In-App purchase system.

Parameters

ApiKey$ The GooglePlay app public API key. It can be found in the google play console 'Service & API' -> 'Public key RSA for this app'.
Callback A callback which will be called with the initialisation status. It has to respect the following declaration:
  Procedure InitAppProductsCallback(Success)
    ; Success will be #True if init has been successful, or #False if it failed.
  EndProcedure

Return value

None.

Example

  Procedure InitAppProductsCallback(Success)
    Debug "InitAppProducts(): " + Success
  EndProcedure

  ; SpiderTest app API key
  ApiKey$ = "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAjEOS1dwdGm6QSLgWwM96AK3HiYrMFup1+ThEy2lqpsQ5fvx5T0EHGgVZvlfhtYICyBDmkSLfCjRKznQ32DUYS5nGSGQ62x70KwdM5z5IMZXq1qFXlPAtUtc9+SjuRGnYKexlg86eT+RZPN2XIz9Eiz2DMxQoG8la/QPFPnt4RsatsxClEOudjo3S4Z0bwcVrkh7O1qMQRRKQDQTB0RQs21xkOWRCZ4Q8sW8/a7YLNCuDbFUKXw9c/cgihuLEQE3DufLnMf5vjk7ScfZH1dOORnUsnmZMfnFuwVINq7oNBC3JihPK/weUYstiiQwe1t28I4fIieH4hB/7FdxBF3i2ywIDAQAB"
  InitAppProducts(ApiKey$, @InitAppProductsCallback())

See Also

QueryAppProducts()
<- ExamineAppProducts() - InAppPurchase Index - NextAppProduct() ->