---
title: Direct Debit Integration & Testing
slug: en/direct-debit-integration-and-testing
description: Information about integration and testing on the Direct Debit payment method with the NICEPAY system
image: https://archbee-image-uploads.s3.amazonaws.com/ZHvSjR5ZrsoxwKbJa3xmo/sOP5wgohFduw30FmWgTYM_microsoftteams-image.png
icon: {"faIcon":"fa-solid fa-book"}
docTags: 
createdAt: 2022-09-16T09:04:21.000Z
---

# Integration Steps and API Used

***

1. Perform Order Registration integration.
   - SNAP: [Registration - API E-Wallet (Direct Debit) SNAP](docId\:U__7u4PnTx3_eSWeZ-94m).
   - Redirect: [Direct Debit - API Checkout](docId\:o4M8pglvoUVcFKeuz5OT_).
2. Perform API Payment Charge integration.
   - Redirect: [Payment - API Checkout](docId\:o-4MmsbwXtZIb0ydniohw).
3. Receive NICEPAY callback and push notification.
4. Perform API Check Status integration.
   - SNAP: [Check Status Transaction - API E-Wallet (Direct Debit) SNAP](docId\:za7aN0HE8C3-2OiXvdlNa).&#x20;
   - Redirect: [Status Inquiry - API Checkout](docId\:RhH7PmISd6IHN99yWVJHm).
5. Optional: perform API Cancel integration to cancel the transaction.
   - Redirect: [Cancel - API Checkout](docId\:CmiiEW1Oy21QP7qDEcUl-).



# Direct Debit Testing Guide

***

1. Use Merchant or Sandbox MID (`TNICECP041`).
2. Create Jenius Pay registration.
3. Perform hit using NICEPAY Payment API.
4. Input ID Cashtag and Jenius Pay `TXID`.
5. Perform payment confirmation.



# Failed Transaction Possible Reason

***

1. Run into Connection Time Out.
2. Receive basic error on Bank.
3. Input the wrong Cashtag.



# 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](https://docs.google.com/spreadsheets/d/e/2PACX-1vQIaIMCM0vZ3L1cA-JkW3YxyIpjsB966fg1wTeT8qpFDowEvulIEWOoY6I4uJPL3A/pub?output=xlsx)
- [ ] Review Error Handling (Timeout, Failed, Negative Case).



# Best Practice

***

- When notification is received on your `dbProcessUrl`, NICEPAY strongly recommends Merchant to verify the notification by using the Inquiry API.
- `Notification Handling` is helpful to minimalize Fraud actions, NICEPAY strongly recommends Merchant to verify the `Notification Handling`.



# See also

::::VerticalSplit{layout="middle"}
:::VerticalSplitItem
Visit the [Direct Debit Payment Flow](docId\:hmEoZZ2tXYJlvN-jyzpJ3) page to find out the system process during payment with Direct Debit.
:::

:::VerticalSplitItem
Visit the [Direct Debit Feature](docId\:GKwm16GlBre1E4EM0cV1Q) page to find out the transaction features on the Direct Debit.
:::
::::



