Subscription Notification Integration Guide
Use Cases
- Subscription notifications are used to receive subscription lifecycle status changes or subscription plan update results.
- Merchants can decide whether to continue providing service based on fields such as
event,status, andcurrentPeriod. - This callback is initiated by PingPongCheckout and is not a merchant-initiated request.
Configuration
- Configure the subscription notification URL through
notifyUrlin Subscription-related APIs. notifyUrlmust be a publicly reachable merchant endpoint that supports HTTPPOSTand JSON payload parsing.- Do not use local or intranet addresses such as
localhost,127.0.0.1, or192.168.x.x.
ACK Rules
| Reception Result | HTTP Code Rule | Response Body Rule |
|---|---|---|
| Success | 200 <= httpcode < 300 | No fixed response body is required, as long as the body is not the plain text FAIL |
| Failure | Non-2xx, or 2xx with a response body exactly equal to FAIL | Retries will be triggered |
Tip
The retry schedule is 5s/5s/3m/10m/20m/30m/30m/30m/60m/3h/3h/3h. Any successful retry stops the remaining retries.
Handling Recommendations
- Verify the signature first, then perform idempotency checks, and only then update your local subscription state.
- Use
eventtogether withstatusfor business decisions instead of relying on a single field. currentPeriodis returned at the top level ofbizContent, not insideduration.- If payment notifications and subscription notifications are received for the same cycle, handle idempotency separately for each notification type.
