Get Result

The GetResult message retrieves the results of the payment transaction after the browser has been redirected back to the registration platform. The SECUREID is passed back as a field to the “Request URL” on the website. A second field called STATUS is also passed back.
s

Important: Do not send a GetResult message until after the user has been redirected back to your Return URL. If a GetResult is received prior to the browser returning to your system then the transaction may be cancelled automatically.

GetResult Message

REQUIRED
REQUEST FIELD
DESCRIPTION
N
TERMID
8 character terminal ID assigned by SportsPay; must be the first field
N
TYPE

Will always be W for Web-Redirect

N
PASS

Password for the TERMID

N
ACTION

Type of request message: GetResult

N
SECUREID
The session ID that was returned by StartSession
ACK

If Y then the gateway will attempt to finalize the transaction.
Note: Always check the ACK = Y response. If ACK = N then send ACK

Response to GetResult

RESPONSE FIELD
Description
CODE
0000 is approved; anything else is an error code
TEXT
Message indicating the result of the request
DATE TIME
Gateway time
DUR
The amount of time the gateway required to process the request
SECUREID
The session identifier
CARDTYPE

One letter card type:

V – Visa

M – Mastercard

A – Amex

D – Debit

B – Bank

AUTH
Authorization number to display to the customer
AMT
The authorized amount
REQUESTID
The authorized amount
SCHEDID
Included if a schedule was attached to the redirect
REFNUM
Transaction reference number either provided or assigned by the gateway
ACK

Y (yes) or N (no) for whether the session has been acknowledged (completed)

TOKEN
A safe token representing the card data for later use

Response to Tokenization or Schedule Attach Card

RESPONSE FIELD
Description
CODE
0000 is approved; anything else is an error code
TEXT
Message indicating the result of the request
DATE TIME
Gateway time
DUR
The amount of time the gateway required to process the request
SECUREID
The session identifier
CARDTYPE

One letter card type:

V – Visa

M – Mastercard

A – Amex

D – Debit

B – Bank

SCHEDID
Included if a schedule was attached to the redirect
ACK

Y - tokenize session is automatically closed

TOKEN
A safe token representing the card data for later use
p

The values retrieved using GetResult may be used in a subsequent host-based transaction such as a Sale (‘S’) or a Return (‘R’) using TOKEN instead of the card data.

Example: Approved Payment

Request:
TERMID=TESTTERM&TYPE=W&PASS=mypass&ACTION=GetResult&SECUREID=i1t6tvowc908r1655ww3816tv5cw88l1wa8
Response:
CODE=0000&SECUREID=i1t6tvowc908r1655ww3816tv5cw88l1wa8&TEXT=Approved&CARDTYPE=V&AUTH=123456&AMT=120.25&REQUESTID=12345678&REFNUM=12348765423987&ACK=N&TOKEN=4003BFDRESA19999&DATE=2016‑03‑28&TIME=17:58:08&DUR=0.146

Example: One Step Ack Request

Request:
TERMID=TESTTERM&TYPE=W&PASS=mypass&ACTION=GetResult&SECUREID=i1t6tvowc908r1655ww3816tv5cw88l1wa8&ACK=Y
Response:
CODE=0000&SECUREID=i1t6tvowc908r1655ww3816tv5cw88l1wa8&TEXT=Approved&CARDTYPE=V&AUTH=123456&AMT=120.25&REQUESTID=12345678&REFNUM=12348765423987&ACK=Y&TOKEN=4003BFDRESA19999&DATE=2016-03-28&TIME=17:58:08&DUR=0.146
p
Be sure to check the ACK=Y part of the message. If the session does not return an ACK=Y either as part of the GetResult or from a direct Ack then the transaction has not been captured and will not charge the card.

Example: Tokenization

Request:
TERMID=TESTTERM&TYPE=W&PASS=mypass&ACTION=GetResult&SECUREID=i1t6tvowc908r1655ww3816tv5cw88l1wa8
Response:
CODE=0000&SECUREID=i1t6tvowc908r1655ww3816tv5cw88l1wa8&TEXT=TOKENOK&CARDTYPE=V&ACK=Y&TOKEN=4003BFDRESA19999&DATE=2016‑03‑28&TIME=17:58:08&DUR=0.146

Example: Declined

Request:
TERMID=TESTTERM&TYPE=W&PASS=mypass&ACTION=GetResult&SECUREID=i1t6tvowc908r1655ww3816tv5cw88l1wa8
Response:
CODE=9205&SECUREID=i1t6tvowc908r1655ww3816tv5cw88l1wa8&TEXT=DECLINED&AMT=120.25&REQUESTID=12345678&REFNUM=12348765423987&ACK=Y&DATE=2016‑03‑28&TIME=17:58:08&DUR=0.146