Parameter Descriptions

This page describes the request and response fields used by the three Embedded Components gateway messages: StartSession, GetResult, and Ack.

Embedded Components uses the same message lifecycle as Customized Checkout, with one extra request parameter — EMBED — and stricter requirements on the return URLs.

For field formats (max length, allowed characters, decimal precision, date formats), see the API Reference.

Request Fields

📘

INV, REFNUM, DESC, PROGRAM, PLAYER, and ACCOUNT can be used together to make transactions easily searchable and reconcilable in PaymentsHQ.

Identification

FieldNameUsed OnDescription
TERMIDTerminal IDAllIdentifies the merchant account the transaction belongs to. Assigned by SportsPay and tied to a specific merchant.
PASSPasswordAllAuthenticates the request. Required on every call.
TYPETransaction TypeAllW for all Embedded Components messages.
ACTIONActionAllThe message being sent: StartSession, GetResult, or Ack.
REQUESTIDRequest IDStartSessionUnique identifier you generate for this transaction. Must be unique per terminal — the gateway uses it for duplicate protection, so a second StartSession with the same REQUESTID on the same terminal is rejected. Does not appear in reports.
SECUREIDSecure IDGetResult, AckSession identifier returned by StartSession. Use it to retrieve the result and acknowledge the transaction.
REFNUMReference NumberStartSession (optional), Ack (alternative to SECUREID)Your internal reference. Must be unique within the batch — if omitted, the gateway assigns one. Fully searchable in reporting.

Embedded Components

FieldNameUsed OnDescription
EMBEDEmbed FlagsStartSessionOne or more letters controlling which visual components render on the embedded page. See the Overview for the full flag list. The B flag is reserved for a future release — leave it out for now.

Transaction Details

FieldNameUsed OnDescription
AMTAmountStartSessionTransaction amount. If the merchant is CustomerPay-enabled, send AMT and USERFEE as separate fields — the gateway adds them on the hosted page.
DESCDescriptionStartSessionShort description shown on the payment page and searchable in reporting. For example: "U13 Boys Select" or "Fall Tryouts".
INVInvoice NumberStartSessionInvoice number shown in reporting and on the payment page. Acts as a transaction tag — does not need to be unique. Groups related transactions together (e.g. a Sale and its Refund, or a declined Sale retried successfully).
USERFEECustomerPay Processing FeeStartSession (CustomerPay merchants only)Processing fee passed to the cardholder at checkout. See CustomerPay.
PLATFEEPlatform FeeStartSessionFee added to the transaction and paid by the cardholder. See Platform Billing.
PLATCHRGPlatform ChargeStartSessionFee subtracted from the approved transaction amount and paid by the merchant. See Platform Billing .
PLATFORMPlatform BillingStartSessionGateway automatically applies as PLATFEE or PLATCHRG based on the merchant's pricing model. See Platform Billing .

Customer Information

FieldNameUsed OnDescription
CUSTEMAILCustomer EmailStartSessionCustomer email. Searchable in reporting.
CUSTNAMECustomer NameStartSessionCustomer name. Searchable in reporting.
CUSTIDCustomer IdentifierStartSession (optional)Your internal customer identifier. When provided, the payment page switches to the Wallet variant, allowing returning customers to select a previously used card instead of re-entering their details.

Language

FieldNameUsed OnDescription
LANGLanguageStartSessionE for English (default) or F for French. Controls the language of the embedded payment fragment.

Return URLs

FieldNameUsed OnDescription
SUCCESSURLSuccess Return URLStartSessionURL loaded inside the iframe after a successful transaction. Must be served from an origin you control so your return page can post the result up to the parent window. Only honored if the terminal has DYNAMICURL enabled. See Return URLs.
FAILUREURLFailure Return URLStartSessionURL loaded inside the iframe after a decline or cancel. Defaults to SUCCESSURL if omitted. Same origin requirement as SUCCESSURL. Only honored if the terminal has DYNAMICURL enabled. See Return URLs.

Acknowledgement

FieldNameUsed OnDescription
ACKAcknowledgeGetResult (optional), AckPass ACK=Y on GetResult to capture the transaction in the same call. Otherwise, send a separate Ack message with ACK=Y within 3 minutes of approval, or the transaction will be reversed.

Reconciliation Detail (Optional)

These structured fields appear in the Deposit Report and let you split a single transaction into categories for reconciliation. Each can be sent independently or in combination — include all, some, or none.

FieldNameUsed OnDescription
PROGRAMProgramsStartSessionProgram- or fee-level detail. Each entry includes a Name (program description) and AMT. Entries are evaluated independently; if totals don't match the transaction amount, the remainder is assigned to an "Uncategorized" entry.
PLAYERPlayersStartSessionPlayer- or participant-level detail. Each entry includes an id (player identifier, name, or internal ID) and AMT. Same totalling rules as PROGRAM.
ACCOUNTAccountsStartSessionAccount-level allocation (e.g. HST, Operating Account, Savings). Each entry includes a DESC and AMT. Same totalling rules as PROGRAM.

For structured-field syntax (nested brackets in tag/value or arrays in JSON), see the API Reference.

Response Fields

Standard Envelope

These fields appear on every response. See Technical Specifications for the full envelope definition.

FieldNameDescription
CODEResponse CodeFour-digit result code. 0000 = success; any other value indicates a decline, validation error, or gateway issue.
TEXTResponse TextHuman-readable result message. Common values: SUCCESS, APPROVED, CAPTURED, REVERSED, DECLINED TEST.
DATEDateDate the response was generated.
TIMETimeTime the response was generated.
DURDurationRequest processing duration in seconds.

StartSession Response

FieldNameDescription
SECUREIDSecure IDSession identifier. Store this on your server — you need it to call GetResult and Ack.
URLEmbedded Page URLURL to load in the <iframe> on your checkout page. The gateway renders the payment fragment with the components suppressed according to the EMBED= flags you sent.
HOSTGateway HostOrigin of the gateway serving this session.
USERFEECustomerPay FeeProcessing fee that will be added to the amount on the embedded page, for CustomerPay-enabled merchants. Returns 0.00 otherwise.

GetResult Response

FieldNameDescription
AMTAmountBase transaction amount. For CustomerPay-enabled merchants, add USERFEE to get the total the customer paid.
USERFEECustomerPay FeeProcessing fee added on the hosted page (CustomerPay only).
REQUESTIDRequest IDThe REQUESTID you sent on StartSession.
REFNUMReference NumberThe reference number for this transaction (provided by you on StartSession, or assigned by the gateway).
CARDTYPECard TypeSingle-letter card type code (e.g. V for Visa, M for Mastercard).
CARDMASKCard MaskPCI-safe masked card number.
CARDEXPCard ExpirationCard expiration date.
CARDHASHCard HashTokenized hash identifying the same card across transactions without exposing card data.
AUTHAuthorizationAuthorization number from the card network. Only present on approved transactions.
TOKENTokenPermanent token for reusing this card on future transactions. Only present when card data was processed.
GATEREFGateway ReferenceGlobally unique identifier for this approved financial transaction. Store it for querying or tracing. Only present on approved financial transactions.
ACKAcknowledgementY if the transaction was captured (whether via ACK=Y on GetResult or a separate Ack call), N otherwise.
CUSTNAMECustomer NameCustomer name from StartSession.
CUSTEMAILCustomer EmailCustomer email from StartSession.
CUSTIDCustomer IDCustomer identifier if passed on StartSession.

Ack Response

FieldNameDescription
ACKAcknowledgementY if the transaction was captured, N if the capture failed.
GATEREFGateway ReferenceReturned when the capture succeeded.