samsung-iap.* — Samsung IAP

Type Library
Revision Release 2021.3646
Keywords IAP, Samsung IAP, Samsung In App Purchase
Platforms Android
Sample https://github.com/solar2d/plugins-sample-samsung-iap

Overview

The Samsung IAP plugin let you make in app purchases via Samsung's App Store.

Registration/Setup

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.

Gotchas

While Samsung IAP does not require server, in order to verify and get receipt data you can follow Samsung IAP Server Guide

Syntax

local store = require( "plugin.samsung.iap" )

Properties

Functions

Events

Project Settings

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"
        },
    },      
}
Note

For Android, the following permissions/features are automatically added when using this plugin:

  • "android.permission.INTERNET"
  • "com.samsung.android.iap.permission.BILLING"

Support