IAP Badger

A simple, unified, IAP library for Corona SDK

iap_badger.setCancelledListener()

 
Type function
Library iap_badger.*
Return value Table
Keywords listener, cancelled, cancel, event
See also

Overview

Sets the cancelled listener function that is called when an attempt to make a purchase is cancelled by the user. By default, IAP Badger displays a message to the user to tell them their transaction was cancelled.

The cancelled listener call also be set in iap_badger.init(), but can also be modified during app execution to respond appropriately at different times.

Syntax

iap_badger.setCancelledListener()

Example

--Include the plugin
local iap = require 'iap_badger'

--New transaction cancelled event listener
local function newListener(productName, transaction)

    print ("Transaction was cancelled")

end

iap.setCancelledListener(newListener)


This website uses cookies. Click here to see our privacy policy. Created using the Responsive Grid System.