AstraPay Registration - API E-Wallet
There are several specific differences for API E-Wallet AstraPay, like on the API URL and Merchant Token sections.
The stages of integration in E-Wallet are the same. However, there are significant differences in the integration of E-Wallet AstraPay. Especially for AstraPay Registration and Payment. Please visit Registration - API E-Wallet and Payment - API E-Wallet to know other process on the other E-Wallet.
The E-Wallet AstraPay Registration API uses so that merchants can connect their E-Wallet AstraPay account with the system provided by NICEPAY. So, the payment system that has been provided and hosted from the merchant side can integrate with the system from NICEPAY. The following API can use for E-Wallet AstraPay.
API End Point | /nicepay/api/linkEnable.do |
Request Method | POP UP, Redirect, Submit |
Description | Connecting account to NICEPAY |
Header | Content-Type: application/form |
Merchant Token | SHA256 (iMid+referenceNo+billingPhone+merchantKey) |
Request Format | application/json |
- This API can only be implemented for E-Wallet AstraPay
- Please visit AstraPay Payment - API E-Wallet page to know integration API specific for E-Wallet AstraPay payment.
The following is a list of parameters for requesting registration for the AstraPay E-Wallet payment method. Request register using API Call Form - URL. This parameter uses through the API testing platform as one of the stages so that the Merchant's system can connect to services from NICEPAY.
Parameter | Type | Size | Description | Example / Notes |
timeStamp Required | N | 14 | Request Timestamp (YYYYMMDDHH24MISS) | 20220101123456 |
iMid Required | AN | 10 | Merchant ID | TestEwallet |
referenceNo Required | ANS | 40 | Merchant's RefNo. | ORD12345 |
payMethod | N | 2 | 05 | |
billingNm Required | A | 100 | Buyer Name | John Doe |
billingPhone Required | N | 15 | Buyer Phone No. | 082111111111 |
billingEmail Required | ANS | 40 | Buyer E-mail | |
mitraCd Required | A | 4 | | ASTR |
dbProcessUrl Required | ANS | 255 | Notification URL | https://merchant.com/api/dbProcessUrl/Notif |
merchantToken Required | AN | 255 | Merchant Token | 6cfccfc0046773c1b589d8e 98f8b596c284f3c70a4ecf8 6eba14c18944b74bcd |
description | AN | 100 | Transaction Description | Test Transaction |
userIP Required | AN | 15 | User IP address | 127.0.0.1 |
returnJsonFormat | AN | 100 | Return Json format | userSessionID |
Please visit E-Wallet to learn general information about E-Wallet payment methods.
Following are the response parameters from the results of the request parameters for registering the AstraPay E-Wallet payment method.
Parameter | Type | Size | Description | Example / Notes |
resultCd | N | 4 | Result Code | 0000 |
resultMsg | AN | 255 | Result Message: Error Code | SUCCESS |
tXid | AN | 30 | Transaction ID | IONPAYTEST05202212121533119647 |
referenceNo | ANS | 40 | Merchant Ref. No | ncpy20221212153313 |
payMethod | N | 2 | 05 | |
amt | N | 12 | Payment Amount | null |
transDt | N | 8 | Transaction Date (YYYYMMDD) | 20221212 |
transTm | N | 6 | Transction Time (HH24MISS) | 153313 |
mitraCd | A | 4 | ASTR | |
paymentExpDt | N | 6 | QR Payment Expiry Date (YYYYMMDD) | null |
paymentExpTm | N | 6 | QR Payment Expiry Time (HH24MISS) | null |
redirectUrlHttp | ANS | 255 | Redirect to MitraPage | https://sandbox.astrapay.com/merchant-service/link?clientId=1baf55ad-2130-4d46-bf48-91b0b01004a1&merchantUserId=2212124f0ccbef5a913058 |
redirectUrlApp | AN | 100 | Redirect URL Apps | null |
redirectToken | AN | 100 | Redirect token | null |
Callback Handling on E-Wallet Registration obtained on URL format after registration is success.