Payment
Credit Card

Credit Card Integration & Testing

16min

Integration and Testing  for Credit/Debit Card .



Integration Steps and API Used


  1. Perform  Call Transaction Registration .
  2. Perform  Call  Charge .
  3. Receive  callback and push .
  4. Perform  Check Status .
  5. Optional: Perform  Cancel  to cancel  .



Credit Card Testing Guide



Test Step

Rules and Conditions

  1. Use a Real Card or Dummy Card that starts from 45xxxx or 54xxxx.
  2. Input your  account number to    side with accountNo .
  3. Input  and  with    until  success.
  1. Transaction will settle based on   rules.
  2. The card used automatically will decrease card limit.
  3. On void  (aborts on  same day before  cut-off time),  void fund will return in real-time to   limit.
  4. A card blocked is the user's responsibility if fraud is found in  .



Failed Transaction Possible Reason


  1. Inactive card.
  2. Card expired.
  3. The card number is invalid.
  4. The card expiry date is invalid.
  5. CVV invalid.
  6. The Issuer network is unsupported.
  7. The daily card limit used already hit  limit.
  8.  Visa is 3Ds.

 visit   Error Code  to view further error .



Integration Checklist & Test Case



Implement inquiry  after receiving  callback.

Implement inquiry  after receiving   inside dbProcessUrl.

Review  log.

Review firewall setting (eg. cloudflare for setting dbprocessUrl).

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).



Credit Card Feature


  • Full Payment, for one-time charge  directly.
  • Installment  Payment, for installment charge  following  tenor.
  • Recurring Payment, for recurring  using  token.
  • Preauth & Capture Payment, for pre-auth   capture on   before  final charge.

Learn further regarding   features on Credit Card Feature.



Best Practice


  • For  setting,  can install recurrOpt automatic Cancel . Learn Recurring Token  technical installation on API Credit Card.
  • Cancel for  support full partial cancel. Learn further on  Cancel Type Code .
  • After   into dbProcessUrl you received,  recommended  to verify  Notification using Inquiry . Learn why inquiry is valuable for You on Status Inquiry - API Checkout  and Status Inquiry - API Credit Card .
  • Notification Handling is helpful to minimalize Fraud actions,  strongly recommends  to verify  Notification Handling.

⚠️It is important to perform checking on Notification and Inquiry. View further  on Notification - API Credit Card / Notification - API Checkout.



See also

  Credit Card Payment Flow  to find out    during  with  .

  Credit Card Feature  to find out   feature on  

  Credit Card Glossary  to find out  particular term used on .

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