POST
/webhooks/response-credit-cardCredit Card Transaction Response (Webhook)
HTTP POST callback sent to merchant's configured response_url after a credit card transaction has been processed.
You can set your Response URL in the Advanced URL Management section of the Settings and Configuration Page in the Hosted Payments Admin.
This is a server-to-server callback and is not directly invoked by the merchant.
Request Body
Content type: application/x-www-form-urlencoded
Common5 fields
resp_codestringAt this time, resp_code will always be 000 indicating an approved sale.
resp_textstringA textual response for the transaction result.
tran_idstringTransaction identifier.
tran_amountstringThe amount of the transaction.
tran_datestringTimestamp of the transaction.
Format: MM/DD/YYYY HH:MM:SS AM/PM
When Provided5 fields
auth_codestringAuthorization code provided by the issuing bank.
card_idstringThe returned value is the token for the card which was stored.
hpp_tran_idstringHosted Payment Page transaction identifier.
invoice_numberstringIdentical to the request field of the same name.
client_ref_numberstringIdentical to the request field of the same name.
Other Fields7 fields
acct_numberstringTruncated card or bank account number.
exp_datestringCardholder expiration date.
Format: MMYY
billing_addressstringStreet address entered by the cardholder during checkout.
billing_zipstringZIP Code entered by the cardholder during checkout.
currency_codestringCurrency code. Defaults to 840 – USD.
tran_typestringThe transaction type from the original request.
retrieval_ref_numberstring12-digit MerchantE generated reference number.
Responses
200
Merchant acknowledges receipt of transaction response
Merchant acknowledges receipt of transaction response
Code samples
Copy-paste ready code in your preferred language to integrate the Hosted Payment Page.
Form POST
Copy/paste friendly
API call
curl -X POST "https://cert.hostedpayments.merchante.com/hpp/webhooks/response-credit-card" \
-H "Content-Type: application/x-www-form-urlencoded" \
--data-urlencode "profile_id=xxxx4100006000500000001" \
--data-urlencode "payment_amount=500.00" \
--data-urlencode "invoice_number=INV-2023-001" \
--data-urlencode "client_reference_number=REF-12345"