ONE store provides two Push Notification Services for developers.
If the transaction of in-app product billing or billing cancellation occurs, ONE store provides PNS (payment notification service), which sends a notification to the developer's server.
An SNS (Subscription Notification Service) that sends notifications to the developer server when the subscription status changes
Please note:
The notification might be delayed or lost depending on the status of transmitting/receiving servers, and therefore it is not recommended that you provide in-app (services) based on the reception of the notification.
If you want to identify whether the purchase is valid through server-to-server, it is recommended to search with the related server API instead of using PNS notifications.
ONE store can perform the billing test for the purpose of reviewing and monitoring, and in addition, the notification will be sent when the billing/billing cancellation is performed in the billing test. The history of the billing test performed by ONE store will be periodically canceled by ONE store.
Set Up PNS Receiving Server URL
You can set the URL of the developer's server to receive PNS by clicking on the 'Manage PNS' button on the 'Developer Center > Apps > Select In-Apps > In-App' menu.
The URL can set up the Sandbox (for development) and commercial (including commercial test) test environments respectively, and if the development/commercial servers are the same, enter the same URL.
PNS Details
Specifications for Sending Payment Notification Messages (ONE store → Developer Server)
URI: Payment Notification URL set up by the Developer Center
Definition of paymentMethod (ONE store payment method)
How to review the signature
You can check whether the signature has been forced or falsified by using the code below.
PublicKey within the code indicates the license key provided on 'Developer Center > In-App > Credentials'. For details on the license key, refer to "Check License Key (public key) & OAuthCredentials" within the Pre-preparations page.
ONE store's PNS server shall send notification to the developer's server through HTTP(S) requests.At this time, the developer's server must respond with the HTTP Status Code as 200 to indicate that the notification has been normally received.If the HTTP Status Code fails to be received as 200 (as the response due to the loss of notification caused by delays in the network or due to the failure in the developer's server), the PNS server determines that the notification transmission has failed, and thereby will perform up to 30 rounds of retransmission during 3 days.The retransmission of the notification will be performed after certain delays as seen in the example below, and more retransmission rounds will lead to more delays.