Capture / Sale
The Capture / Sale request is acceptable with HTTPS POST method only.
Staging URL: https://stagingpayment.share-commerce.com/PreAuth/Capture
Production URL: https://payment.share-commerce.com/PreAuth/Capture
Request
Merchant need to pass in the following for Capture / Sale transaction.
| Field Name | Data Type (Len) | M/O | Description |
|---|---|---|---|
| MerchantID | String (50) | M | Unique merchant ID assigned to each merchant by Share Commerce |
| MerchantOrderNo | String (50) | M | MerchantOrderNo upon submission on Pre-Auth transaction |
| MerchantPaymentNo | String (50) | M | Unique Merchant Payment No for every transaction request |
| PreAuthTxnRefNo | String (50) | M | TxnRefNo from successful Pre-Auth transaction |
| CaptureAmount | Decimal (18,2) | M | Exact capture / sale transaction amount *Capture Amount CANNOT greater than PreAuth Amount |
| Http Header | Data Type (Len) | M/O | Description |
|---|---|---|---|
| SCSign | M | Message sign (Refer to below SCSign Calculation section) |
*Note, field SCSign have to put in Http Header.
Request Sample
{
"MerchantID": "MID0001",
"MerchantOrderNo": "POST0001",
"MerchantPaymentNo": "AHS92738",
"PreAuthTxnRefNo": "8712893729013",
"CaptureAmount": 25.00
}
SCSign Calculation (Request)
For Pre-Auth (Void), SCSign generation will based on the raw request send or raw response received, and calculate with HMACSHA256. And SCSign value have to be capture at Http Header.
Secret Key : mSuE3Ttn5B8vJhe5ncMutMLV
Raw Request
{"MerchantID":"MID0001","MerchantOrderNo":"POST0001","MerchantPaymentNo":"AHS92738","PreAuthTxnRefNo": "8712893729013","CaptureAmount":25.00}
SCSign (Request) : fdcc76af29a9468b7ff696b8d7b5992a460548d407ffa97443875855325dc574
Response
Refer to the section PRE AUTH > Response > 2. Sample of response (Http POST)