On This Page
Secure Acceptance Hosted Checkout Integration Transaction Flow
Secure Acceptance
Hosted Checkout Integration
Transaction FlowFigure:
Hosted Checkout Integration
Transaction Flow
- The customer clicks thepaybutton on your website, which triggers an HTTPS POST that directs the customer to thehostedthat you configured inSecure Acceptancepagethe Business Center. The HTTPS POST includes the signature and signed data fields containing the order information.Hosted Checkout Integrationworks 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 impersonatingCybersource, 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 detailsHosted Checkout Integrationpageandtheir billing and shipping information. The customer confirms the payment, and the transaction is processed.
- Cybersourcerecommends that you configure a custom receipt page inthe Business Centerso 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 Checkout Integrationcan also display a standard receipt page to your customer, and you can verify the result of the transaction search inthe Business Centeror the standardCybersourcereports.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.
- Cybersourcerecommends 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 theCybersourceSimple Order API to submit a capture request when goods are shipped.