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 returns201 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:
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 toreturn_url after the hosted browser flow.
4. Confirm the final status
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 sameIdempotency-Key and an equivalent effective request identity. A
changed business attempt uses a new key. See Idempotency.
Next steps
- Create a Refund after a test Payment succeeds.
- Submit and retrieve a Payout.
- Receive Payment and Refund events.
- Add complete API error handling.