GPN Integration & Testing
Integration Steps and API Used
- Perform API Order Registration integration.
- Direct: Registration - API GPN.
- Redirect: GPN - API Checkout.
- Perform API payment Charge integration.
- Direct: Payment - API GPN.
- Redirect: Payment - API Checkout.
- Receive NICEPAY callback and push notification.
- Perform API Status Inquiry integration.
- Direct: Status Inquiry - API GPN.
- Redirect: Status Inquiry - API Checkout.
- Optional: perform API Cancel integration to cancel the transaction.
- Direct: Cancel - API GPN.
- Redirect: Cancel - API Checkout.
GPN Testing Guide
Test Step | Rules and Condition |
|---|---|
| GPN payment method code: 09 Payment type:
|
Failed Transaction Possible Reason
- GPN card isn't active or already expired.
- GPN card number is invalid.
- GPN card expiry date is invalid.
- CVV on the card is invalid.
- Not supported by Issuer network.
- Already reach daily transaction limit of GPN card.
Integration Checklist & Test Case
Implement inquiry status after receiving the callback.
Implement inquiry status after receiving the notification inside dbProcessUrl.
Review payment log.
Review firewall setting (eg. cloudflare for dbprocessUrl setting).
Check merchantToken implementation.
Execute test scenarios in Development Environment.
Execute test scenarios in Production Environment. Get Sample Scenario
Review Error Handling (Timeout, Failed, Negative Case).
Best Practice
- For Merchant testing can set automatic recurrOpt parameter on API Cancel (Recurring Type Code).
- API Cancel on Credit Card support to fall or half cancel (Cancel Type Code).
- When notification is received on your dbProcessUrl, NICEPAY strongly recommend Merchant to verify the notification using the Inquiry API.
- Notification Handling is helpful to minimalize Fraud actions, NICEPAY strongly recommends Merchant to verify the Notification Handling.
See also
Visit the GPN Payment Flow page to find out the system process during payment with the GPN.
Visit the GPN Payment Method Type page to find out payment type when using GPN card.
{Visit} the GPN Glossary page to find out the particular term used on GPN.
Visit the GPN FAQ page if you want to find out frequently asked questions related to GPN.