Specials
Top sellers

Android In App Purchases

Android In App Purchases
Product Code: Android_GoogleIAP
Availability: In Stock
Built for: Android GooglePlay
Product Version: 1.0.3
Forum Link: http://www.shiva-engine.com/forum/viewtopic.php?f=82&t=30659
Req. ShiVa Version: ShiVa 1.9.2 Engines
Plugin Platform Compatibility: Android
Price: $39.95
Seller information: Silicon Droid
Country: Spain
Company: Silicon Droid
Qty:     - OR -   Wish List
Compare
This plugin enables in app purchasing on android.
Compatible with ShiVa1.9.2/UAT1.4 and ShiVa2.0.

Brief instructions here:

-------------------------------------------------------------------
Android_GoogleIAP.initialise ( sBase64key, hObject, sAI, sHandler )
-------------------------------------------------------------------
hObject = nil if you are using user level AI (recommended).
hObject = object handle if you are using object level AI.
sAI = the name of the AI which contains the message handler you create.
sHandler = the function name of the message handler that you create.

-------------------------------------------------------------------
Android_GoogleIAP.productsInventory ( sCommaDelimitedProductIDs )
-------------------------------------------------------------------
Call this first with comma delimited product IDs or just one ID.

-------------------------------------------------------------------
Android_GoogleIAP.productPurchase ( sProductID )
-------------------------------------------------------------------
Purchase a product.

-------------------------------------------------------------------
Android_GoogleIAP.productIsPurchased ( sProductID )
-------------------------------------------------------------------
Check if a product is purchased.

-------------------------------------------------------------------
Android_GoogleIAP.productConsume ( sProductID )
-------------------------------------------------------------------
Consume a consumable product.

RECEIVING REPLIES:
The plugin does not block, it runs asynchronously.
You implement a callback handler in ShiVa script to catch returned data like this:

--------------------------------------------------------------------------------
function MyAI.onGoogleIAP_Callback ( kMessageType, sData )
--------------------------------------------------------------------------------

--kMessageType:
--Android_GoogleIAP.K_pluginLogError
--Android_GoogleIAP.K_pluginLogInfo
--Android_GoogleIAP.K_initialise
--Android_GoogleIAP.K_productsInventory
--Android_GoogleIAP.K_productPurchase
--Android_GoogleIAP.K_productIsPurchased
--Android_GoogleIAP.K_productConsume

--sData:
--makeup can be found in the API popup documentation within ShiVa editor.

--------------------------------------------------------------------------------
end
--------------------------------------------------------------------------------

Full instructions and demo application included with the purchase and also available in the forum link: http://www.shiva-engine.com/forum/viewtopic.php?f=82&t=30659 .

Write a review

Your Name:


Your Review: Note: HTML is not translated!

Rating: Bad           Good

Enter the code in the box below:



ShiVa Store © 2017 - Powered By OpenCart