PNS Message Details Change History

Message Format Change History

  • To support currencies other than the Korean won, the data type of billing amount (price) has changed from Number to String.

  • To support currencies other than the Korean won, the currency code (priceCurrencyCode) of the billing amount has been added.

  • To support currencies other than the Korean won, the data type of amount per payment method (amount) has changed from Number to String.

  • The purchaseToken, environment, marketCode fields have been added to the response specifications.

Request Body : JSON Format

Element Name

Data Type

Description

msgVersion

String

Message version

  • Development (Sandbox): 3.0.0D

  • Commercial (commercial test): 3.0.0

packageName

String

Package name of the app

productId

String

In-app ID

messageType

String

Fix SINGLE_PAYMENT_TRANSACTION

purchaseId

String

Purchase ID

developerPayload

String

Identifier managed by the developer to identify purchases

purchaseTimeMillis

Long

Time (ms) when the billing is completed in ONE store billing system

purcahseState

String

COMPLETED: billing completed / CANCELED: cancelled

price

String

Payment amount

priceCurrencyCode

String

Currency code for payment amount (KRW, USD, ...)

productName

String

It is transmitted when the developer sets up the customized in-app title at the time of purchase request.

paymentTypeList

List

List of payment information

paymentMethod

String

Payment method (for details, refer to the definition of paymentMethod)

amount

String

Amount per payment method

billingKey

String

Billing key for extended function

isTestMdn

Boolean

Test phone or not (true: test phone, false: not test phone)

purchaseToken

String

Purchase token

environment

String

Test environment

  • Development (Sandbox): SANDBOX

  • Commercial:COMMERCIAL

marketCode

String

Market identification code (MKT_ONE: ONE store, MKT_STM: Storm+ )

signature

String

Signature for this message

Example

{
    "msgVersion" : "3.0.0"
    "packageName":"com.onestore.pns",
    "productId":"0900001234",
    "messageType":"SINGLE_PAYMENT_TRANSACTION",
    "purchaseId":"SANDBOX3000000004564",
    "developerPayload":"OS_000211234",
    "purchaseTimeMillis":24431212233,
    "purchaseState":"COMPLETED",
    "price":"10000",
    "priceCurrencyCode":"KRW"
    "productName":"GOLD100(+20)"
    "paymentTypeList":[
        {
            "paymentMethod":"DCB",
            "amount":"3000"
        },
        {
            "paymentMethod":"ONESTORECASH",
            "amount":"7000"
        }
    ],
    "billingKey" : "36FED4C6E4AC9E29ADAF356057DB98B5CB92126B1D52E8757701E3A261AF49CCFBFC49F5FEF6E277A7A10E9076B523D839E9D84CE9225498155C5065529E22F5",
    "isTestMdn" : true,
    "purchaseToken" : "TOKEN",
    "environment" : "SANDBOX",
    "marketCode" : "MKT_ONE"
    "signature" "ajkfl;askfjkladfjksl"
}

Last updated