Type Library Revision Release 2024.3703 Keywords IAP, Samsung IAP, Samsung In App Purchase Platforms Android Sample https://github.com/solar2d/plugins-sample-samsung-iap
The Samsung IAP plugin let you make in app purchases via Samsung’s App Store.
In order to test and use In App Purchases you must setup a Samsung Seller Account, create a listing to test and deploy your app for on to the Samsung App Store. Under your Seller Profile be sure add the Samsung email(s) you plan to use to test under License Test. Also you need to upload an initial binary/apk for your app in order to create and test IAP products.
While Samsung IAP does not require server, in order to verify and get receipt data you can follow Samsung IAP Server Guide
local store = require( "plugin.samsung.iap" )
To use this plugin, add an entry into the plugins
table of build.settings
. When added, the build server will integrate the plugin during the build phase.
settings = { android = { manifestChildElements = { --Needed for newer versions of Android [[ <queries> <package android:name="com.sec.android.app.samsungapps" /> </queries> ]], }, }, plugins = { ["plugin.samsung.iap"] = { publisherId = "com.solar2d" }, }, }
For Android, the following permissions/features are automatically added when using this plugin:
"android.permission.INTERNET"
"com.samsung.android.iap.permission.BILLING"