On This Page
Secure Acceptance Hosted Payments Page Transaction Flow
Secure Acceptance
Hosted Payments Page
Transaction FlowFigure:
Hosted Payments Page
Transaction Flow
- The customer clicks the button on your website, which triggers an HTTPS POST that directs the customer to the that you configured in . The HTTPS POST includes the signature and signed data fields containing the order information.Hosted Payments Pageworks best with JavaScript and cookies enabled in the customer browser.Your system should sign all request fields with the exception of fields that contain data the customer is entering. To prevent malicious actors from impersonatingBarclays, do not allow unauthorized access to the signing function. See Required Signed Fields.
- Secure Acceptanceverifies the signature to ensure that the order details were not amended or tampered with and displays the . The customer enters and submits payment details their billing and shipping information. The customer confirms the payment, and the transaction is processed.
- Barclaysrecommends that you configure a custom receipt page in so that the signed transaction response is sent back to your merchant server through the browser. See Merchant Notifications. You must validate the response signature to confirm that the response data was not amended or tampered with.Hosted Payments Pagecan also display a standard receipt page to your customer, and you can verify the result of the transaction search in or the standardBarclaysreports.If the response signature in the response field does not match the signature calculated based on the response data, treat the POST as malicious and disregard it.Secure Acceptancesigns every response field. Ignore any response fields in the POST that are not in thesigned_fieldsfield.
- Barclaysrecommends that you implement the merchant POST URL notification as a backup means of determining the transaction result. This method does not rely on your customer's browser. You receive the transaction result even if your customer lost connection after confirming the payment. See Merchant Notifications.If the transaction type if sale, it is immediately submitted for settlement. If the transaction type isauthorization, use theBarclaysSimple Order API to submit a capture request when goods are shipped.