Capture

Info

This api is used to allow an approved transaction to proceed forwards to settlement. It is only necessary to capture a transaction if merchant specified capture:'N' in the original purchase request

Endpoint

https://api.grubpay.io/v4/capture

Method:

POST

Content-Type: application/json;charset=UTF-8

Request
NameRequiredTypeSampleDescription
mchIdyString10000701assigned by GrubPay
mchOrderNoy*String1234567890abc
payOrderIdy*StringPC1982739182398
amountyInt1500must > 0; cannot exceed original transaction amount
loginNameyString(12)jack123merchant's login name
signyString(32)C380BEC2BFD727A4B6845133519F3AD6Sign algorithm

*use either payOrderId or mchOrderNo, use one of them

Response
nameRequiredtypesampledescription
retCodeyStringSUCCESS or FAIL
retMsgyString
retDatayJSONif retCode=SUCCESS, order detailed info returned

retData contains order information:

namerequiredtypesampledescription
payOrderIdyStringSUCCESS or FAIL
mchIdyString
mchOrderNonString
originalOrderIdnStringoriginal pay order id for refund
amountyInt100in cents
currencyyStringCAD
payTypeyStringpay or refund
refundableyInt100in cents
statusyInt0,1,2,90 = pending order, 1 = unknown, 2 = success, 9 = fail
recurringIdyIntrecurring payment id this transaction belongs to ( 0 if non-recurring)
paySuccTimeyString2021-04-07 19:44:51
cardNumyString432567******2266
cardTypeyString
expiryDateyString
authNumyString
transNumyString
channelyStringCC_CARDfixed value:CC_CARD
Last Updated:
Contributors: Grant, grant, Grant Yao