Initiate Payment (Transaction)

Initiates a payment transaction for an existing checkout session. PayOS models a “payment” as a transaction; the primary identifier is transactionId.

Request

This endpoint expects an object.
paymentMethodIdenumRequired
Payment method identifier.
sessionIdstringRequired
Unique identifier for the session.
paymentDetailsobjectRequired
signaturestringOptional
Optional signature used for hosted checkout verification.
attributesmap from strings to stringsOptional
Optional transaction attributes.

Response

Transaction initiated successfully.
transactionIdstring
Unique identifier for the transaction.
statusstring
Current transaction status.
messagestring

Human-readable status message.

authStateobject or null

Indicates additional steps required to complete a transaction. The shape varies by payment method and processor. Use type to determine which fields are present.

Errors