IAP Badger

A simple, unified, IAP library for Corona SDK

iap_badger.setFailedListener()

 
Type function
Library iap_badger.*
Return value Table
Keywords listener, failed, fail, event
See also

Overview

Sets the failed listener function that is called when an attempt to make a purchase fails - this could be due to a number of reasons, including network failure. By default, IAP Badger displays a message to the user reporting the error text as described by the standard Corona store libraries.

The failed 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.setFailedListener()

Example

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

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

    print ("Transaction failed")

end

iap.setFailedListener(newListener)


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