PAYSTORY CANCELLATION GUIDE - minglepay/paystory_global GitHub Wiki
-
- Set the
midandmerchantKeyused for payment. - When the payment is successful, the
tidreceived in response can be used to cancel the payment. - If you want to receive cancellation result data as Back-End , check configuration and data information in the "โกGet Data From Back-End" section.
- ๐ก If
tidwas not saved due to TimeOut or other reasons, you can request cancellation with the order number (ordNo) instead oftid.
- Set the
-
๐ When requesting cancellation, the integrity of the request data is verified using
encrypted hashdata.
| Parameter | Algorithm | Plain text |
|---|---|---|
| encData | Hex(Sha256) | mid + ediDate + canAmt + merchant key(merchantKey) |
URL : https://pg.minglepay.co.kr/payment/cancel
Content-Type : application/x-www-form-urlencoded; charset=utf-8
Data Type : String
| Parameter | Description | Required | Size(Byte) |
|---|---|---|---|
mid |
Merchant ID | O | 10 Fixed |
tid |
Transaction ID | O | 30 |
canAmt |
Cancel amount | O | 15 |
canId |
Cancel requester ID | 10 | |
canMsg |
Cancel reason | O | 100 |
partCanFlg |
Cancel type 0: Full cancel, 1: Partial cancel | O | 20 |
encData |
Hash256 encrypted value | O | 256 |
ediDate |
Request date (yyyymmddhhmmss) | O | 14 |
ordNoChk |
โYโ : used with ordNo when transaction ID of payment is unknown. ( Default : N) |
Optional | 1 |
ordNo |
order ID of payment ๐ก In case of cancel request with โordNoโ |
Optional | 40 |
charset |
Character encoding method UTF-8(default), EUC-KR |
Optional | 10 |
Content-Type: application/json
Data Type : String
| Parameter | Description | Size (Byte) |
|---|---|---|
resultCd |
Cancel result code 2001: success, Other failures (In case of card payment ) | 10 |
resultMsg |
Cancel result message | 100 |
payMethod |
Payement method (CARD) | 20 |
tid |
Transaction ID (Cancellation) โ in case of partial cancellation, transactrion id is created and returned separately. โ Do Not confuse with โoTidโ |
30 |
mid |
Merchant ID | 20 |
ordNo |
Merchant order ID | 40 |
cancelYN |
Transaction type N : authorization, Y : Cancellation |
1 |
amt |
Cancel amount | 15 |
appDtm |
Cancel date | 14 |
appNo |
Authorization number | 20 |
charSet |
UTF-8(default), EUC-KR | 10 |
encData |
Hash256 encrypted value | 256 |
oTid |
Transaction ID (Authorization) | 30 |
ediDate |
Request date (yyyymmddhhmmss) | 14 |