---
title: Payment - API Paylater
slug: en/nicepay-api-non-snap-payment-api-paylater
description: Information about Non-SNAP Payment API - Payment - Paylater API available on NICEPAY system
image: https://archbee-image-uploads.s3.amazonaws.com/ZHvSjR5ZrsoxwKbJa3xmo/QAewGLsiM1wg4RNQdb4FS_nicepay-docs-logo.png
icon: {"faIcon":"fa-solid fa-book"}
docTags: 
createdAt: 2023-08-16T10:26:39.167Z
---

# About API Paylater Payment&#x20;

***

Through the Paylater payment method, NICEPAY offers you the convenience of cross-app payments (Jump App) for your Customers. Notifications will be sent to Customers in real-time as soon as the Customers complete payments. The Customer will receive notification regularly related to the loan request through NICEPAY Partner.



# API Paylater Payment

***

Paylater Payment aims Customers can proceed the payment transactions. This step uses to perform integration of the Merchant system with the NICEPAY system.



| **API End Point**  | `/nicepay/direct/v2/payment`                                 |
| ------------------ | ------------------------------------------------------------ |
| **Request Method** | <font color="#3b9f0f">**POST**</font>****                    |
| **Description**    | Performs Transaction Regist to NICEPAY&#xD;                  |
| **Merchant Token** | SHA256(`timeStamp`+`iMid`+`referenceNo`+`amt`+`merchantKey`) |
| **Request Format** | `application/x-www-form-urlencoded`                          |



## Request Parameter for Paylater Payment

***

The following is a list of parameters for performing the payment integration process for the Paylater payment method. This parameter uses in the API testing platform as one of the steps so the Merchant system can connect with the NICEPAY service.

| **Parameter**                                                 | **Type** | **Size** | **Description**                        | **Example / Notes**                                              |
| ------------------------------------------------------------- | -------- | -------- | -------------------------------------- | ---------------------------------------------------------------- |
| `timeStamp `<br /><font color="#2166ae">Required</font>       | N        | 14       | Request Timestamp (`YYYYMMDDHH24MISS`) | 20200910170911                                                   |
| `tXid `<br /><font color="#2166ae">Required</font>            | AN       | 30       | Transaction ID	                        | IONPAYTEST01201804191202084760                                   |
| `merchantToken `<br /><font color="#2166ae">Required</font> | AN       | 255      | Merchant Token                         | d27544e13fd9937be9fc5d99ba39a75344b0e6dd1c6c358c9858a94606a74c4e |
| `callBackUrl `<br /><font color="#2166ae">Required</font>   | ANS      | 255      | Payment Result URL                     | http\://merchant.com/callbackUrl<br />&#xD;                      |



## Sample JSON for Paylater Payment&#x20;

***

:::CodeblockTabs
FormUrlencoded

```json
callBackUrl=http://merchant.com/callbackUrl
tXid=PAYLOANTES06202010221238593706
timeStamp=20200910170911
merchantToken=d27544e13fd9937be9fc5d99ba39a75344b0e6dd1c6c358c9858a94606a74c4e
```

Java Request

```java
nicePay.setTimeStamp("20200910170911");
nicePay.settXid("PAYLOANTES06202010221238593706");
nicePay.setMerchantToken(nicePay.getMerchantToken());
nicePay.setCallBackUrl("http://merchant.com/callbackUrl");

// Payment Request
nicePay.payment();


```
:::



# CallBack Handling Paylater

***

`Callback Handling` obtained from Paylater payment method using URL. After Merchant call API on Paylater, then Merchant will be directed to the payment page on NICEPAY Partner application.

:::hint{type="success"}
When Your callback already received `callbackUrl`, we recommended the Merchant to do the status verification using the [Status Inquiry - API Paylater](docId\:C7bY1comgVlnAUoQJixnx). &#x20;
:::

:::hint{type="warning"}
`CallBack Handling` is very important to minimize the Fraud act, we highly recommend the Merchant to do the verification using `CallBack Handling`.
:::

:::CodeblockTabs
URL CallBack

```json
https://merchant.co.id/nicepay-callback?resultCd=0000&resultMsg=SUCCESS&tXid=PAYLOANTES06202212141336161529&referenceNo=815123412341&payMethod=06&amt=20000&transDt=20221214&transTm=133616&description=&authNo=&issuBankCd=&acquBankCd=&cardNo=&receiptCode=&mitraCd=KDVI&recurringToken=&preauthToken=&currency=IDR&goodsNm=Test+Transaction+Nicepay&billingNm=Customer +Name&ccTransType=&mRefNo=&instmntType=&instmntMon=&cardExpYymm=&issuBankNm=&acquBankNm=&timeStamp=&merchantToken=
```

Response CallBack

```none
{
    "resultCd": "0000",
    "resultMsg": "SUCCESS",
    "tXid": "PAYLOANTES06202212141336161529",
    "referenceNo": "815123412341",
    "payMethod": "06",
    "amt": "20000",
    "transDt": "20221214",
    "transTm": "133616",
    "description": "",
    "authNo": "",
    "issuBankCd": "",
    "acquBankCd": "",
    "cardNo": "",
    "receiptCode": "",
    "mitraCd": "KDVI",
    "recurringToken": "",
    "preauthToken": "",
    "currency": "IDR",
    "goodsNm": "Test Transaction Nicepay",
    "billingNm": "Customer Name",
    "ccTransType": "",
    "mRefNo": "",
    "instmntType": "",
    "instmntMon": "",
    "cardExpYymm": "",
    "issuBankNm": "",
    "acquBankNm": "",
    "timeStamp": "",
    "merchantToken": ""
}
```
:::



# Confirm Receipt (Akulaku Only)

***

:::hint{type="warning"}
Only Confirm Receipt after the Customer have received the item. Merchants are required to do this in order to receive settlement funds from completed transactions.
:::

| **API End Point**  | `/nicepay/api/direct/v2/confirmAkulaku`                |
| ------------------ | ------------------------------------------------------ |
| **Request Method** | <font color="#3b9f0f">**POST**</font>****              |
| **Description**    | Performs Receipt Confirmation for Fund Settlement&#xD; |
| **Merchant Token** | SHA256(`timeStamp`+`tXid`+`iMid`+`merchantKey`)        |



## Request Parameter

| **Parameter**                                                | **Type** | **Size** | **Description**                        | **Example / Notes**            |
| ------------------------------------------------------------ | -------- | -------- | -------------------------------------- | ------------------------------ |
| `timeStamp `<br /><font color="#2166ae">Required</font>      | N        | 14       | Request Timestamp (`YYYYMMDDHH24MISS`) | 20170708123456                 |
| `tXid `<br /><font color="#2166ae">Required</font>           | AN       | 30       | Transaction ID	                        | IONPAYTEST02201607291027025291 |
| `iMid`<br /><font color="#2166ae">Required</font>           | AN       | 10       | Merchant ID                            | IONPAYTEST                     |
| `merchantToken`<br /><font color="#2166ae">Required</font> | AN       | 255      | Merchant Token                         | 6cfccfc0046773c1b589d8e98f8    |



## Response Parameter

| **Parameter**                                               | **Type** | **Size** | **Description**                               | **Example / Notes** |
| ----------------------------------------------------------- | -------- | -------- | --------------------------------------------- | ------------------- |
| `resultCd`<br /><font color="#2166ae">Required</font>       | N        | 4        | [Result Code](docId:9eC3yH9CQqpb6cRWauWWO)    |                     |
| `resultMsg`<br /><font color="#2166ae">Required</font>      | AN       | 30       | [Result Message](docId:9eC3yH9CQqpb6cRWauWWO) |                     |
| `ResponseData`<br /><font color="#2166ae">Required</font> | AN       | 255      | Merchant Token                                |                     |

