This endpoint will make a payment on the supplied payment card.
HTTP Request
POST https://sandboxsalesapi.connexpay.com/api/v1/HostedPaymentPageRequests/ConfirmTransaction
Headers:
Key | Value |
---|---|
Content-Type | "application/json" |
JSON Body:
Parameter | Type | M/C/O | Value |
---|---|---|---|
TempToken | string | Mandatory | Temp token get from the Hosted Payment Token Request API. |
Sale | object | Mandatory | Standard Sale Object definied in the Sale > Create Sale API section. Only need to supply Card info, and 'Card.Customer.Email' if needed. |
{
"tempToken": "8263d54a-b61b-4601-a4a8-f7231565b87e",
"sale": {
"card": {
"cardNumber": "1234567812345678",
"cardHolderName": "Test-User",
"expirationDate": "2201",
"customer": {
"email": "[email protected]"
}
}
}
}
{
"merchantName": "ACME",
"description": "Hundred Dollar Trip",
"amount": 100.00,
"otherUrl": "https://sandboxsales.connexpay.com/#!/HostedPaymentResult",
"resultRedirectUrl": "https://sandboxsales.connexpay.com/#!/HostedPaymentResult",
"cancelUrl": "https://sandboxsales.connexpay.com/#!/HostedPaymentResult",
"tempToken": "8263d54a-b61b-4601-a4a8-f7231565b87e",
"displayCreditCard": true,
"displayAch": false,
"expiration": "2020-11-21T17:08:07.32",
"logoUrl": "https://connexpay.com/wp-content/uploads/2018/10/newlogo.png",
"merchantGuid": "1818a55e-8541-4bfe-a288-bad870afbe1d",
"used": true,
"sale": {
"guid": "33b9f4c8-1b48-49bf-a5c2-f5fdd560dd99",
"status": "Transaction - Approved",
"type": "Default",
"batchStatus": "Batch - Open",
"timeStamp": "2020-11-20T11:23:05.37-06:00",
"deviceGuid": "0b7a9536-9fcd-4074-a841-d47eef77b81b",
"amount": 100.00,
"activated": true,
"tenderType": "Credit",
"effectiveAmount": 0.00,
"riskResponse": {
"transactionId": "1111111",
"response": "Approved",
"reason": "",
"score": "34",
"omniscore": "63.7"
},
"orderNumber": "11111111111",
"cardDataSource": "INTERNET",
"batchGuid": "9f723a3f-1851-41e1-912a-747cc5a1e689",
"connexPayTransaction": {
"guid": "9b65a501-13d9-4a72-9081-df515a5b8b96",
"expectedPayments": 1,
"incomingTransCode": "22222222222222222222"
},
"riskProcessingOnly": false,
"processorStatusCode": "A0000",
"processorResponseMessage": "Success",
"wasProcessed": true,
"authCode": "VTLMC1",
"refNumber": "24782402",
"customerReceipt": "CONNEXPAY\n8320 S HARDY DRIVE\nTEMPE AZ 85284\n11/20/2020 16:22:55\n\nCREDIT - SALE\n\nCARD # : **** **** **** 0057\nCARD TYPE :MASTERCARD\nEntry Mode : MANUAL\n\nTRANSACTION ID : 24782402\nInvoice number : Dan-20201119M52433\nAUTH CODE : VTLMC1\nSubtotal: $00.00\n--------------------------------------\nTotal: $00.00\n--------------------------------------\n\n\n\nTest-User\n\nCUSTOMER 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\nISSUER\nAPPROVED\n\n\n\n\nCustomer Copy\n",
"generatedBy": "TestUser",
"card": {
"first6": "111111",
"first4": "1111",
"last4": "1111",
"cardHolderName": "Test-User",
"cardType": "Mastercard",
"expirationDate": "2022-01",
"guid": "a15a2dc4-fcc8-4215-a8db-8e21ecc2749a",
"customer": {
"guid": "60989394-6b52-43bd-b13d-32b13c91df0b",
"email": "[email protected]"
}
},
"addressVerificationCode": "0",
"addressVerificationResult": "Unavailable",
"cvvVerificationResult": "Unavailable"
}
}