HppResultMessage
Sent once, when the checkout ends, however it ends. Covers every
terminal state via outcome, so this is the only "it's over"
message you need to handle.
- attemptsType: integer
How many times the customer pressed Pay. Always
0onerror, since the form never loaded. - lastType: objectnullable
_error Properties: 1{ message }describing the most recent failure: either a failed payment attempt, or, onerror, why the session couldn't be loaded.nullif nothing failed. Can be set even whenoutcomeiscompleted, if earlier attempts failed before the one that succeeded. A decline never produces a message of its own: the customer stays in the iframe and can retry; declines only surface here, on the eventualresult. - outcomeType: stringenum
Answers exactly one question: how did the checkout end.
completedonce the customer submits (regardless of whether the payment itself succeeded).canceledif they left first.expiredif the session'svalid_untilran out before they submitted, whether caught by the page's own proactive timer while the tab sat open, or by the submit itself being blocked.errorif the page could not even load the session (unreachable, invalid, or an already-expired link). Unlike the other outcomes,errormeans the customer was never shown the card form at all, so there is nothing left for them to do inside the iframe: treat it as terminal (e.g. close the iframe) rather than expect a laterresult.None of this is a payment-success indicator. Read
payment_intent.statusfor that (watch forrequires_capture: authorized but not yet captured, not a failure).valuescompletedcanceledexpirederror - paymentType: PaymentIntentnullable
_intent Properties: 7The complete, unserialized payment intent object from the hosted page's own confirmation step. Present whenever an attempt was made, including on a
canceledorexpiredresult if the customer tried and failed before giving up or running out of time, andnullonly when there was no attempt at all, which is always the case onerror. - sessionType: stringFormat: uuid
_id - sourceconst:kort-hosted-payment-page
- typeconst:result