Payment
GPN

GPN Integration & Testing

13min

Integration Steps and API Used


  1. Perform Order Registration .
  2. Perform Charge .
  3. Receive callback and push .
  4. Perform Status Inquiry .
  5. Optional: perform Cancel to cancel .



GPN Testing Guide



Test Step

Rules and Condition

  1. Use real card or dummy card start from 45xxxx or 54xxxxx.
  2. Input your card to 's side under “Credit Card/Debit Card” option.
    •  16 digit card number.
    •  expiry date (MM/YY).
    •  CVV.
  3. Collect and and successful.

 code: 09



 type:

  • Full : one-time .
  • Recurring : recurring with token.



Failed Transaction Possible Reason


  1.  card isn't active or already expired.
  2.  card number is invalid.
  3.  card expiry date is invalid.
  4. CVV on card is invalid.
  5. Not supported by Issuer network.
  6. Already reach daily limit of card.



Integration Checklist & Test Case



Implement inquiry after receiving callback.

Implement inquiry after receiving inside dbProcessUrl.

Review 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 can set automatic recurrOpt on Cancel (Recurring Type Code).
  •  Cancel on support to fall or half cancel (Cancel Type Code).
  • When is received on your dbProcessUrl, strongly recommend to verify using Inquiry .
  • Notification Handling is helpful to minimalize Fraud actions, strongly recommends to verify Notification Handling.



See also

 GPN Payment Flow to find out during with .

 GPN Payment Method Type to find out type when using card.

{} GPN Glossary to find out particular term used on .

 GPN FAQ if you want to find out frequently asked questions related to .