# PNS Message Details Change History

### **Message Format Change History** <a href="#pnsmessagedetailschangehistory-messageformatchangehistory" id="pnsmessagedetailschangehistory-messageformatchangehistory"></a>

* 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        | <p>Message version</p><ul><li>Development (Sandbox): 3.0.0D</li><li>Commercial (commercial test): 3.0.0</li></ul> |                                                                        |
| 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                                                                                       |                                                                        |
| <p><br></p>        | paymentMethod | String                                                                                                            | Payment method (for details, refer to the definition of paymentMethod) |
| <p><br></p>        | amount        | String                                                                                                            | Amount per payment method                                              |
| billingKey         | String        | Billing key for extended function                                                                                 |                                                                        |
| isTestMdn          | Boolean       | <p>Test phone or not<br>(true: test phone, false: not test phone)</p>                                             |                                                                        |
| purchaseToken      | String        | Purchase token                                                                                                    |                                                                        |
| environment        | String        | <p>Test environment</p><ul><li>Development (Sandbox): SANDBOX</li><li>Commercial:COMMERCIAL</li></ul>             |                                                                        |
| marketCode         | String        | Market identification code (MKT\_ONE: ONE store)                                                                  |                                                                        |
| signature          | String        | Signature for this message                                                                                        |                                                                        |

<br>

**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"
}
```
