Credit Card Capture
Credit card capture converts an authorized transaction into sale and flags it for settlement.
post
https://<PayEngine-host>
/api/payment/capture

Sample Request / Response

Request
Response

Example Request

1
{
2
3
"id": "54191797",
4
"data": {
5
"transactionAmount": "11.00"
6
}
7
}
Copied!

Example Response

1
{
2
"data": {
3
"ID": "63213593-212e-4a42-b071-d19b4d664c55",
4
"MerchantID": "8357832f-79c9-48fd-9647-d1dae251e434",
5
"TransactionID": "45aaa8e9-574a-4fcf-8769-37cf74474c76",
6
"CaptureResponse": {
7
"status": "PASS",
8
"responseCode": "A0000",
9
"responseMessage": "Success",
10
"authCode": 466071,
11
"hostReferenceNumber": "159996184447",
12
"hostResponseCode": "00",
13
"taskID": "67196560",
14
"transactionID": "54191797",
15
"transactionTimestamp": "2022-05-16T05:02:16",
16
"cardType": "V",
17
"transactionAmount": "11.00",
18
"totalAmount": "11.00",
19
"customerReceipt": " Moore - Legros \\n Test \\n 2022-05-16T05:02:16 \\n CREDIT - SALE \\n CARD # : **** **** **** 1111 \\n CARD TYPE: V \\n Entry Mode : MANUAL \\n TRANSACTION ID : 54191797 \\n Invoice Number: 54191797 \\n AUTH CODE : DSC633 \\n Subtotal: $11.00 \\n Total: $11.00 \\n--------------------------------------\\n \\n \\n CUSTOMER ACKNOWLEDGES RECEIPT OF \\nGOODS AND/OR SERVICES IN THE AMOUNT \\nOF THE TOTAL SHOWN HEREON AND AGREES\\nTO PERFORM THE OBLIGATIONS SET FORTH\\nBY THE CUSTOMER`S AGREEMENT WITH THE\\n ISSUER \\n APPROVED \\n \\n \\n Customer Copy \\n",
20
"merchantReceipt": " Moore - Legros \\n Test \\n 2022-05-16T05:02:16 \\n CREDIT - SALE \\n CARD # : **** **** **** 1111 \\n CARD TYPE: V \\n Entry Mode : MANUAL \\n TRANSACTION ID : 54191797 \\n Invoice Number: 54191797 \\n AUTH CODE : DSC633 \\n Subtotal: $11.00 \\n Total: $11.00 \\n--------------------------------------\\n \\n \\n CUSTOMER ACKNOWLEDGES RECEIPT OF \\nGOODS AND/OR SERVICES IN THE AMOUNT \\nOF THE TOTAL SHOWN HEREON AND AGREES\\nTO PERFORM THE OBLIGATIONS SET FORTH\\nBY THE CUSTOMER`S AGREEMENT WITH THE\\n ISSUER \\n APPROVED \\n \\n \\n Merchant Copy \\n"
21
}
22
}
23
}
Copied!
Webhook event: PAYMENT_CAPTURE

Webhook Payload Example

1
{
2
event_uid: '4d304a4ed5a4e338b4753ab832efd9c0',
3
event: 'PAYMENT_CAPTURE',
4
data: {
5
account_id: 'e90c1de6-4e87-4c9e-bcbc-c535d6e349ec',
6
payment_id: '41c4772c-aa78-41d2-b60b-52de07ec6df2',
7
merchant_id: 'c404d923-226f-4aae-92da-22c1ef370434',
8
transaction_id: '549f998c-2733-4c75-9420-17d097e95156',
9
auth_response: {
10
"status": "PASS",
11
"responseCode": "A0000",
12
"responseMessage": "Success",
13
"authCode": 466071,
14
"hostReferenceNumber": "159996184447",
15
"hostResponseCode": "00",
16
"taskID": "67196560",
17
"transactionID": "54191797",
18
"transactionTimestamp": "2022-05-16T05:02:16",
19
"cardType": "V",
20
"transactionAmount": "11.00",
21
"totalAmount": "11.00"
22
}
23
}
24
}
Copied!