Skip to main content
Hosted Payment Page (HPP) is the shortest integration path. Flowlix renders the card form; your server creates a Payment, redirects the customer’s browser, and retrieves the Payment for the authoritative result.

When to use HPP

Choose HPP when raw card numbers and CVC values must not enter your checkout or backend. Your merchant server does not send card data in an HPP request. Your server still owns order fulfilment, idempotency, and final-status handling.

Prerequisites

Complete the shared setup in Authentication.

1. Create a Payment

Optional billing and customer fields can prefill the hosted form. The API reference contains the complete request schema.

2. Store the response and redirect

A create returns 201 Created with the current Payment state. Store its id before taking further action. The initial state is one of: For example, a Payment ready for the hosted browser flow is:
Redirect only when the response has status: REQUIRES_ACTION, and use the exact opaque next_action.redirect_url. Flowlix collects the card details on the hosted page. 3D Secure may be presented during that hosted flow when required by the payment provider. A PENDING or FAILED response has no immediate shopper redirect. For Sandbox card entry and authentication scenarios, see test cards and 3DS cases. While the Payment is REQUIRES_ACTION, retrieve it periodically. If its latest next_action.redirect_url changes, send the browser to the new URL. Do not repeatedly redirect the same browser to an unchanged URL.

3. Handle the browser return

Flowlix sends the customer to return_url after the hosted browser flow.
Reaching return_url does not confirm payment. Never fulfil an order from a query parameter or browser state. Retrieve the Payment from your server.

4. Confirm the final status

Repeat the retrieval while the Payment is PENDING, REQUIRES_ACTION, or PROCESSING. Stop when it reaches: For polling intervals and every status, see Payment lifecycle.

Safe retries

If the create request times out or returns a transient HTTP error, retry with the same Idempotency-Key and an equivalent effective request identity. A changed business attempt uses a new key. See Idempotency.

Next steps