Skip to content
Store Dev
Last Updated

Payment Completion Notification

Introduction


This document explains how to process item delivery requests sent from the STOVE Billing Middleware to the game server after a user’s payment has been completed.
This function must be implemented on the game server when using the STOVE Billing System.
The call is made in a RESTful API format, and the transmitted information follows the basic API details described below.

When a user’s payment is completed, the STOVE Billing Middleware sends the product information and game item data (JSON) required for item delivery to the game server URL registered in Partners.
The game server must receive the delivery information → process the delivery to the user → respond to the Billing Middleware with the delivery result.

  • If the purchased product includes in-game items, the Payment Completion Notification API will send the product information and in-game item details to be delivered.
  • (Mobile) For OOAP products, depending on the Partners > MobileBilling > Billing Information Integration > OOAP Delivery Method setting, the completed OOAP purchase information will be sent so that the game can freely deliver the OOAP product.
  • (Mobile) For subscription products, whenever a user’s subscription status changes (expiration date changes, renewal, etc.), the updated subscription status is sent. (Currently, subscription product service is not provided.)

Note: The TID (STOVE Billing transaction ID) provided via the API must be stored and managed by the game server to prevent duplicate or missing deliveries.

Prerequisites


To use this API, you must register the Notification URL in Partners and enable the Notification setting.

1. Register URL in Partners

  • Location 1: Partners > Billing > Billing Settings > Billing Integration Information Management > Payment Completion Notification URL (Noti URL per game world) must be registered in advance.
    Figure1

2. Enable Item Delivery Notification

  • Location 2: Partners > Billing > Item Display Management > Sales Channel Management menu. The Game Server (Item Delivery Noti) field must be set to Y.
    Figure2

Basic Information


text
POST via registered URL in Partners
Host:
   https://i-api.onstove.com (LIVE)    
   https://i-api.gate8.com (SB)
Content-Type: application/json

Request


Header

NameTypeRequiredDefault ValueExampleDescription
caller-idStringY-{game_id}_SERVERAPI caller info {game_id}_SERVER(server)

Path Variable

NameTypeRequiredDefault ValueExampleDescription
service_idStringY-STOVE_QAGame code (issued by STOVE as game_id)

Body

NameTypeRequiredDefault ValueExampleDescription
bill_platform_typestring(16)Y-Payment platform type (required for validation) • MOBILE: Mobile billing • SHOP: Store (online billing)
noti_typestring(32)Y-Notification type • ONLINE_PURCHASE: Online general product purchase • IAP_PURCHASE: Mobile general product purchase • IAP_SUBSCRIPT: Mobile subscription product purchase • IAP_OOAP: Mobile OOAP product purchase • ONLINE_CART_PURCHASE: Online cart product purchase   ○ Required for web store
world_idstring(30)N-World (server) identifier
guidstring(50)N-STOVE member GUID (unique user ID per game) • Required except for games without GUID (all indie games) • If GUID value does not exist, excluded from parameter list
member_nolongN-Member number • Required only for games without GUID (all indie games) • If GUID value does not exist, excluded from parameter list
character_nostring(20)N-Unique key assigned per game character (issued by STOVE)
country_cdStringN-“KR”Country of registration
ageStringN-“10”Member age
txn_timeString(30)Y-Transaction time (Unix Timestamp, UTC+0 based)
extra_dataString(1000)N-Passed via the extraData field in the SDK StovePCStartPurchaseParam
datajson objectY-Detailed data
billstore_sync_flagbooleanNfalseYStore synchronization flag • Excluded from Body delivered to game company

data(Online Standard Products – PC In-game, SHOP)

NameTypeRequiredDefault ValueExampleDescription
tidstring(20)Y-T202202103125Transaction ID issued by STOVE Billing (PC SDK uses TransactionDetailNo)
product_idstring(20)Y-p1002Product code registered on STOVE Platform
product_currencystring(3)Y-KRW, USDCurrency code
product_pricedecimalY-1100, 0.99Transaction amount
inservice_item_idstring(30)Y-cp7892In-game item ID
service_order_idstring(20)N--Passed via the serviceTxnNo field in the SDK StovePCStartPurchaseParam

Data(Mobile Standard / OOAP Products)

NameTypeRequiredDefault ValueExampleDescription
tidstring(20)Y--Transaction ID issued by STOVE Billing
pay_typestringY-INAPP, OOAPPayment type: INAPP / OOAP / OOAP_PROMO / OOAP_POINT
market_codestring(20)Y-GOOGLE_PLAYMarket code
market_product_idstring(50)Y--Product code in the market
product_idstring(20)Y--Product code registered on STOVE Platform
product_currencystring(3)Y-KRW, USDCurrency code
product_pricedecimalY-1100, 0.99Product price
product_price_tierintegerY-1Tier number (mandatory for mobile market payments)
inservice_item_idstring(30)N--In-game item ID
service_order_idstring(20)N--Passed via the extraData or serviceTxnNo field in the SDK StovePCStartPurchaseParam
supply_itemsarrayN--List of items to be delivered (excluding currency)

supply_items

NameTypeRequiredDefault ValueExampleDescription
service_item_codestring(30)Y--In-game item code
total_amountstringY--Delivery quantity (≥1)
item_descstring(100)N--Additional item info/description

Data(Mobile Subscription Products)


NameTypeRequiredDefault ValueExampleDescription
tidstring(20)Y--Transaction ID issued by STOVE Billing
original_tidstring(20)Y--Transaction ID from the first subscription payment
pay_typestringY-SUBSCRIPTIONPayment type
market_codestring(20)Y-GOOGLE_PLAYMarket code
market_product_idstring(50)Y--Product code in the market
product_idstring(30)Y--Product code registered on STOVE Platform
product_currencystring(3)Y-KRW, USDCurrency code
product_pricefloatY-1100, 0.99Product price
product_price_tierintegerY-1Tier number
inservice_item_idstring(30)N--Matching in-game item code, if applicable
subs_status_codestringY-PURCHASESubscription status code: PURCHASE, RENEWED, PAUSED, GRACE, CANCELED, REVOKE, EXPIRED, CHANGED, NCHANGE, FAILED, UNKNOWN
expire_timelongY--Expiration time (Unix Timestamp UTC-0)
market_subscript_statusstringY-7Subscription status code from the market

Response


Body

NameTypeRequiredDefault ValueExampleDescription
codeintY-0Response code
messagestringY-OKResponse message

Sample


Request

text
curl --location --request POST 'Registered URL in Partners' \
--header 'caller-id: {{caller-id}}'

Online Standard Product (PC In-game, SHOP)
{
    "bill_platform_type": "SHOP",
    "noti_type": "ONLINE_PURCHASE",
    "guid": "265265",
    "txn_time": 1644807685000,
    "data": {
        "tid": "1909091033503333452",
        "product_id": "test_1",
        "product_price": 5000.0,
        "product_currency": "KRW",
        "inservice_item_id": "test_1",
        "service_order_id": "testtest_1234"
    }
}

Mobile Standard Product / OOAP Product
{
    "bill_platform_type": "MOBILE",
    "noti_type": "IAP_PURCHASE",
    "character_no": "67891",
    "guid": "67891",
    "world_id": "world_1",
    "txn_time": 1644807685000,
    "data": {
        "tid": "1909091033503333452",
        "pay_type": "INAPP",
        "market_code": "GOOGLE_PLAY",
        "market_product_id": "google_test_1",
        "product_id": "test_1",
        "product_price": 5000.0,
        "product_currency": "KRW",
        "product_tier": 1,
        "inservice_item_id": "test_1",
        "service_order_id": "testtest_1234",
        "supply_items": [
            {
                "service_item_code": "potion_h",
                "total_amount": 2,
                "item_desc": ""
            }
        ]
    }
}

Mobile Subscription Product
{
    "bill_platform_type": "MOBILE",
    "noti_type": "IAP_SUBSCRIPT",
    "character_no": "67891",
    "guid": "67891",
    "world_id": "world_1",
    "txn_time": 1644807685000,
    "data": {
        "tid": "1909091033503333452",
        "original_tid": "o1909091033503333452",
        "pay_type": "SUBSCRIPTION",
        "market_code": "GOOGLE_PLAY",
        "market_product_id": "google_test_1",
        "product_id": "test_1",
        "product_price": 5000.0,
        "product_currency": "KRW",
        "product_tier": 1,
        "inservice_item_id": "test_1",
        "subs_status_code": "PURCHASE",
        "expire_time": 2478329479,
        "market_subscript_status": "7"
    }
}
Response

text
{  
    "code": 0,
    "message": "OK"
}
Return Code

HTTP Status Coderesponse_coderesponse_messageDescription
2000OKSuccess
500500Internal Server ErrorInternal error: Please contact the publishing technical support.

Contact Us


If you have any questions, please contact us on Discord or by email at store.support@smilegate.com.