Session updateSession()

updateSession()

Sends a request to store the input from the hosted field into the session.


Usage Copied to clipboard

PaymentSession.updateSession(updateSessionCallback)


Example Copied to clipboard

PaymentSession.updateSession(function (updateSessionResponse) {
    // handle response
});

JSON Example for Session Update Response Copied to clipboard

 // status can be one of the following: ok, fields_in_error, system_error, request_timeout

// An error response (fields_in_error)
{
    "status": "fields_in_error",
    "session": {
        "id": "SESSION000218450948092491657986"
    },
    "errors": {
        "cardNumber": "invalid",
        "securityCode": "invalid"
    },
    version: "36"
}

// An error response (system_error)
{
    "status": "system_error",
    "session": {
        "id": "SESSION000218450948092491657986"
    },
    "errors": {
        "message": "System error message."
    },
    "version": "36"
}

// An error response (request_timeout)
{
    "status" : "request_timeout",
    "session": {
        "id": "SESSION000218450948092491657986"
    },
    "errors": {
        "message": "Request timeout error message."
    },
    "version": "36"
}

// An ok response
{
    "status":"ok",
    "merchant": "TESTMERCHANT",
    "session": {
        "id": "SESSION000218450948092491657986"
        "updateStatus":"SUCCESS",
        "version":"e3f144ce02"
    },
    "sourceOfFunds": {
        "provided": {
            "card": {
                "brand": "MASTERCARD",
                "expiry": {
                    "month": "1",
                    "year": "39"
                },
                "fundingMethod": "DEBIT",
                "nameOnCard": "John Smith",
                "number": "512345xxxxxx8769",
                "scheme": "MASTERCARD"
            }
        },
        "type": "CARD"
    },
    "version": "36"
}

Arguments Copied to clipboard

updateSessionCallback Copied to clipboard Function

The function to handle the response from PaymentSession.updateSession( ) call. Defined as updateSessionCallback = function(updateSessionResponse).

status Copied to clipboard String REQUIRED

The overall status of the PaymentSession.updateSession( ) request. Possible values are:

ok
fields_in_error
system_error
request_timeout
version Copied to clipboard String REQUIRED

The version of the DirectAPI used to retrieve the session details.

errors Copied to clipboard Object

The errors object returned if the PaymentSession.updateSession( ) request failed to update the session successfully.

errorField Copied to clipboard String

Indicates the name of the field that failed validation, returned only if the response status is fields_in_error.

cause Copied to clipboard String

Cause of the error. Possible values are:

missing
invalid

Example Copied to clipboard

// An error response (fields_in_error)
    "errors": {
        "cardNumber": "invalid",
        "securityCode": "invalid"
    },
message Copied to clipboard String

The error message returned if the response status is system_error or request_timeout.

Example Copied to clipboard

// An error response (request_timeout)
    "errors": {
        "message": "Request timeout error message."
    },
// An error response (system_error)
    "errors": {
        "message": "System error message."
    },
3DSecure Copied to clipboard Object

Information on 3DSecure fields.

acsEci Copied to clipboard Number

The Electronic Commerce Indicator returned by the card issuer in the authentication response message.

It indicates the level of security and authentication of the transaction.
Data is a string that consists of the characters 0-9.
Min length:1
Max length:2
authenticationRedirect Copied to clipboard Object

A collection of parameters required to build the HTML form that is redirected to the ACS.

There are two options to generate the redirect page used to transfer the cardholder to the card Issuer's Access Control Server (ACS) for authentication:

1. Simple: submit the form generated by the gateway. In this case, only the htmlBodyContent parameter is required.
2. Customized: for those merchants who wish to customise the submission. In this case, the acsURL and paReq parameters will be required to formulate the submission.
Note: This field will only be returned in the event of a successful directory server lookup.
pageGenerationMode Copied to clipboard String

Indicates the option (Simple or Customized) used to generate the page that redirects the cardholder to the card Issuer's Access Control Server (ACS) for authentication.

The response to the Check 3DS Enrollment operation will include the information required for the selected option. By default, the Simple option is used.
An enumeration to allow a user to specify if they wish to adopt a customized solution or a simple solution.
Value must be a member of the following list. The values are case sensitive.
CUSTOMIZEDA strategy to indicate that the user wishes to customize the response
SIMPLEA simple interaction model where the response is complete and no user intervention is required.
responseUrl Copied to clipboard

The URL to which you want to redirect the payer after completing the payer authentication process.

Typically, this will be the merchant's website URL, which must be URL encoded for special characters such spaces, hyphens, etc.
Ensure that the URL begins with 'https' and is longer than 11 characters.
simple Copied to clipboard Object

The details required by the system to generate the HTML page as specified in the Simple option.

expectedHtmlEncoding Copied to clipboard String

The encoding required for the HTML returned in the response, through htmlBodyContent parameter.

The available HTML Encoding options that a client may request.
Value must be a member of the following list. The values are case sensitive.
ASCII
ISO_8859_1Latin1
UTF_8
redirectDisplayBackgroundColor Copied to clipboard String

Background color of the page, encoded in HEX, rendered in the cardholder's browser while the browser is waiting for the authentication to commence.

By default, the color is set to #FFFFFF.
Data may consist of the characters 0-9, a-z, A-Z, '#'
Min length:4
Max length:7
redirectDisplayContinueButtonText Copied to clipboard String

Text on the button that the cardholder can use to redirect the browser to the card Issuer's Access Control Server (ACS) if JavaScript is disabled for their browser.

By default, the button text is set to "Click here to continue".
Data can consist of any characters
Min length:1
Max length:40
redirectDisplayTitle Copied to clipboard String

Title of the page rendered in the cardholder's browser while the browser is waiting for the authentication to commence.

By default, the title is set to "Process secure Payment".
Data can consist of any characters
Min length:1
Max length:200
authenticationStatus Copied to clipboard String

Indicates if the cardholder verification was successful.

Included only if payment authentication was attempted and a PARes (Payer Authentication Response) was received by the MPI.

The PARes message is the response received from the card Issuer's Access Control Server (ACS) after the cardholder has completed the authentication process.
Value must be a member of the following list. The values are case sensitive.
AUTHENTICATION_ATTEMPTEDAuthentication was attempted but the card issuer did not perform the authentication.
AUTHENTICATION_NOT_AVAILABLEAn internal error occurred and Authentication is not currently available.
AUTHENTICATION_SUCCESSFULThe cardholder was successfully authenticated.
authenticationToken Copied to clipboard

The base64 encoded value generated by the card issuer.

Included in subsequent transaction request messages and used by the card scheme to verify that the authentication occurred and the values provided are valid. The token should be used unaltered.
This field corresponds to the Cardholder Authentication Verification Value (CAVV) for Visa, the Accountholder Authentication Value (AAV) for MasterCard and JCB, or the American Express Verification Value (AEVV) for American Express.
Data is Base64 encoded
allowable lengths28 or 32
enrollmentStatus Copied to clipboard String

Indicates if the cardholder is enrolled for 3-D Secure authentication.

Value must be a member of the following list. The values are case sensitive.
ENROLLEDThe card is enrolled for 3DS authentication.
ENROLLMENT_STATUS_UNDETERMINEDThe Issuer's ACS was unable to process the request to check enrollment or the card is ineligible.
NOT_ENROLLEDThe card is not enrolled for 3DS authentication.
goodsDescription Copied to clipboard String

An optional field that the merchant may supply in the Transaction Request as a description of the transaction.

If supported by the ACS, this description will be displayed on the authentication page where the cardholder types in their secret password.
Data can consist of any characters
Min length:0
Max length:30
xid Copied to clipboard

A unique transaction identifier generated by the Payment Gateway on behalf of the merchant to identify the 3DS transaction.

This field is mandatory for Verified By Visa transactions if authentication was available. The XID should be used in operation requests unaltered.
Data is Base64 encoded
allowable length28
3DSecureId Copied to clipboard String

A unique identifier supplied by the merchant for the authentication.

It is first defined in the check3DSEnrollment operation, and then included in subsequent operations.It is not used when the authentication is performed externally.
Data consists of ASCII characters
Min length:1
Max length:64
action Copied to clipboard Object

Information about any actions which apply to this transaction.

Specify actions if you wish to change the default behaviour of the transaction.
bypassMerchantRiskRules Copied to clipboard String

The risk rules you wish to bypass when performing risk assessment for an order.

Value must be a member of the following list. The values are case sensitive.
ALL
airline Copied to clipboard Object

Airline industry specific data

bookingReference Copied to clipboard String

The record locator used to access a specific Passenger Name Record (PNR).

PNR is a record in the database of a booking system that contains the itinerary for a passenger, or a group of passengers traveling together.
Data may consist of the characters 0-9, a-z, A-Z
Min length:6
Max length:15
documentType Copied to clipboard String

The type of charge associated with the transaction.

Document Type Code
Value must be a member of the following list. The values are case sensitive.
ADDITIONAL_COLLECTIONAdditional Collection
AGENCY_EXCHANGE_ORDERAgency Exchange Order
AGENCY_GROUP_TICKETAgency Group Ticket
AGENCY_MISCELLANEOUS_CHARGE_ORDERAgency Misc. Charge Order (MCO)
AGENCY_PASSENGER_TICKETAgency Passenger Ticket
AGENCY_TOUR_ORDER_OR_VOUCHERAgency Tour Order/Voucher
AIR_FREIGHTSPD/Air Freight
ANIMAL_TRANSPORTATION_CHARGEAnimal Transportation Charge
CATALOGUE_MERCHANDISE_ORDEREDCatalogue Merchandise Ordered
CLUB_MEMBERSHIP_FEEClub Membership Fee
COUPON_BOOKCoupon Book
CREDIT_CLASS_SERVICE_ADJUSTMENTCredit Class of Service Adjustment
CREDIT_DENIED_BOARDINGCredit Denied Boarding
CREDIT_EXCHANGE_REFUNDCredit Exchange Refund
CREDIT_LOST_TICKET_REFUNDCredit Lost Ticket Refund
CREDIT_MISCELLANEOUS_REFUNDCredit Misc. Refund
CREDIT_MULTIPLE_UNUSED_TICKETSCredit Multiple Unused Tickets
CREDIT_OVERCHARGE_ADJUSTMENTCredit Overcharge Adjustment
CREDIT_UNUSED_TRANSPORTATIONCredit Unused Transportation
DEBT_ADJUSTMENT_DUPLICATE_REFUND_OR_USEDebt Adjustment Duplicate Refund/Use
DUTY_FREE_SALEDuty Free Sale
EXCESS_BAGGAGEExcess Baggage
EXCHANGE_ADJUSTMENTExchange Adjustment
EXCHANGE_ORDERExchange Order
FIREARMS_CASEFirearms Case
FREQUENT_FLYER_FEE_OR_PURCHASEFrequent Flyer Fee/Purchase
FREQUENT_FLYER_FULFILLMENTFrequent Flyer Fulfillment
FREQUENT_FLYER_OVERNIGHT_DELIVERY_CHARGEFrequent Flyer Overnight Delivery Charge
GROUP_TICKETGroup Ticket
IN_FLIGHT_ADJUSTMENTIn-flight Adjustment
IN_FLIGHT_CHARGESIn-flight Charges
IN_FLIGHT_DUTY_FREE_PURCHASEIn-flight Duty Free Purchase
IN_FLIGHT_MERCHANDISE_ORDEREDIn-flight Merchandise Ordered
IN_FLIGHT_PHONE_CHARGESIn-flight Phone Charges
KENNEL_CHARGEKennel Charge
LOST_TICKET_APPLICATIONLost Ticket Application
MISCELLANEOUS_CHARGE_ORDER_OR_PREPAID_TICKET_ADVICEMisc. Charge Order (MCO) / Prepaid Ticket Auth.
MISCELLANEOUS_TAXES_FEESMiscellaneous Tax(es) Fee(s)
PASSENGER_TICKETPassenger Ticket
SELF_SERVICE_TICKETSSelf-Service Ticket(s)
SENIOR_CITIZEN_DISCOUNT_BOOKLETSSenior Citizen Discount Booklets
SMALL_PACKAGE_DELIVERYSmall Package Delivery
SPECIAL_SERVICE_TICKETSpecial Service Ticket
SUPPORTED_REFUNDSupported Refund
TICKET_BY_MAILTicket by Mail
TOUR_DEPOSITTour Deposit
TOUR_ORDER_VOUCHERTour Order Voucher
UNDERCHARGE_ADJUSTMENTUndercharge Adjustment
UNSUPPORTED_REFUNDUnsupported Refund
UPGRADE_CHARGEUpgrade Charge
VENDOR_REFUND_CREDITVendor Refund Credit
VENDOR_SALEVendor Sale
itinerary Copied to clipboard Object

Itinerary details

leg Copied to clipboard Object

Travel leg details.

carrierCode Copied to clipboard

The 2-character IATA airline code or 3 digit accounting code or both of the airline carrier for the trip leg.

Data must match regex
regex\w{2}|\d{3}|\w{2}/\d{3}
messageCarrier code must be 2 characters, 3 digits or a combination of both in the format: ZZ/999
conjunctionTicketNumber Copied to clipboard String

The ticket containing the coupon for this leg for an itinerary with more than four trip legs.

Data may consist of the characters 0-9, a-z, A-Z
Min length:11
Max length:16
couponNumber Copied to clipboard String

The coupon number on the ticket for the trip leg.

Each trip leg requires a separate coupon. The coupon within the series is identified by the coupon number.
Data may consist of the characters 0-9, a-z, A-Z
Min length:1
Max length:1
departureAirport Copied to clipboard String

The 3 character IATA airport code of the departure airport for the trip leg.

Data must consist of the characters A-Z
Min length:3
Max length:3
departureDate Copied to clipboard String

Date of departure for the trip leg.

Data must comply with ISO 8601 extended date format, yyyy-mm-dd
departureTax Copied to clipboard Number

Tax payable on departure for the trip leg.

Data is a string that consists of the characters 0-9 and '.' and represents a valid decimal number.
Min length:1
Max length:14
departureTime Copied to clipboard String

Departure time in local time for the departure airport for this trip leg.

Data must comply with ISO 8601 extended time formats, hh:mm[:ss]Z or hh:mm[:ss](+/-)hh[:mm]
destinationAirport Copied to clipboard String

The 3 character IATA airport code for the destination airport for the trip leg.

Data must consist of the characters A-Z
Min length:3
Max length:3
destinationArrivalTime Copied to clipboard String

Arrival time in local time for the destination airport for this trip leg.

Data must comply with ISO 8601 extended time formats, hh:mm[:ss]Z or hh:mm[:ss](+/-)hh[:mm]
endorsementsRestrictions Copied to clipboard String

Restrictions (e.g. non-refundable) or endorsements applicable to the trip leg.

Data may consist of the characters 0-9, a-z, A-Z
Min length:1
Max length:20
exchangeTicketNumber Copied to clipboard String

New ticket number issued when a ticket is exchanged for the trip leg.

Data may consist of the characters 0-9, a-z, A-Z
Min length:11
Max length:16
fare Copied to clipboard Number

Total fare payable for the trip leg.

Data is a string that consists of the characters 0-9 and '.' and represents a valid decimal number.
Min length:1
Max length:14
fareBasis Copied to clipboard String

Code defining the rules forming the basis of the fare (type of fare, class entitlement, etc.)

Data may consist of the characters 0-9, a-z, A-Z
Min length:1
Max length:24
fees Copied to clipboard Number

Total fees payable for the trip leg.

Data is a string that consists of the characters 0-9 and '.' and represents a valid decimal number.
Min length:1
Max length:14
flightNumber Copied to clipboard String

The flight number for the trip leg.

Data may consist of the characters 0-9, a-z, A-Z
Min length:4
Max length:6
stopoverPermitted Copied to clipboard Boolean

Indicates if a stopover is permitted for the trip leg.

JSON boolean values 'true' or 'false'.
taxes Copied to clipboard Number

Total taxes payable for the trip leg.

Data is a string that consists of the characters 0-9 and '.' and represents a valid decimal number.
Min length:1
Max length:14
travelClass Copied to clipboard String

The industry code indicating the class of service (e.g. Business, Coach) for the leg.

Data may consist of the characters 0-9, a-z, A-Z
Min length:1
Max length:3
numberInParty Copied to clipboard Number

Number of passengers associated with this booking.

Data is a string that consists of the characters 0-9.
Min length:1
Max length:3
originCountry Copied to clipboard String

The 3 character ISO 3166-1 alpha-3 country code of the country of origin for the itinerary.

Data must consist of the characters A-Z
Min length:3
Max length:3
passenger Copied to clipboard Object

Passenger details

firstName Copied to clipboard String

First name of the passenger to whom the ticket is being issued.

Data can consist of any characters
Min length:1
Max length:50
lastName Copied to clipboard String

Last name of the passenger to whom the ticket is being issued.

Data can consist of any characters
Min length:1
Max length:20
middleName Copied to clipboard String

Middle name of the passenger to whom the ticket is being issued.

Data can consist of any characters
Min length:1
Max length:50
specificInformation Copied to clipboard String

Passenger specific information recorded on the ticket.

Data may consist of the characters 0-9, a-z, A-Z
Min length:1
Max length:59
title Copied to clipboard String

Title of the passenger to whom the ticket is being issued.

Data can consist of any characters
Min length:1
Max length:20
planNumber Copied to clipboard String

Plan number supplied by the airline for this booking.

Data may consist of the characters 0-9, a-z, A-Z
Min length:2
Max length:2
ticket Copied to clipboard Object

Ticket details

conjunctionTicketIndicator Copied to clipboard Boolean

Indicates if a conjunction ticket with additional coupons was issued.

Conjunction ticket refers to two or more tickets concurrently issued to a passenger and which together constitute a single contract of carriage.
JSON boolean values 'true' or 'false'.
customerReference Copied to clipboard String

Information supplied by the customer.

For example, Frequent Flyer number.
Data can consist of any characters
Min length:1
Max length:20
eTicket Copied to clipboard Boolean

Indicates if an electronic ticket was issued.

JSON boolean values 'true' or 'false'.
exchangedTicketNumber Copied to clipboard String

The original ticket number when this is a transaction for an exchanged ticket.

Data may consist of the characters 0-9, a-z, A-Z
Min length:11
Max length:16
issue Copied to clipboard Object

Ticket issue information.

address Copied to clipboard String

The address where the ticket was issued.

Data can consist of any characters
Min length:1
Max length:16
carrierCode Copied to clipboard

The 2-character IATA airline code or 3 digit accounting code or both of the airline carrier issuing the ticket.

Data must match regex
regex\w{2}|\d{3}|\w{2}/\d{3}
messageCarrier code must be 2 characters, 3 digits or a combination of both in the format: ZZ/999
carrierName Copied to clipboard String

Name of airline carrier issuing the ticket.

Data may consist of the characters 0-9, a-z, A-Z
Min length:1
Max length:25
city Copied to clipboard String

The city/town where the ticket was issued.

Data may consist of the characters 0-9, a-z, A-Z
Min length:1
Max length:18
country Copied to clipboard String

The 3 character ISO 3166-1 alpha-3 country code of the country where the ticket was issued.

Data must consist of the characters A-Z
Min length:3
Max length:3
date Copied to clipboard String

The date the ticket was issued.

Data must comply with ISO 8601 extended date format, yyyy-mm-dd
travelAgentCode Copied to clipboard String

Industry code of the travel agent issuing the ticket.

Data may consist of the characters 0-9, a-z, A-Z
Min length:8
Max length:9
travelAgentName Copied to clipboard String

Name of the travel agent issuing the ticket.

Data may consist of the characters 0-9, a-z, A-Z
Min length:1
Max length:30
restricted Copied to clipboard Boolean

Indicates if the issued ticket is refundable.

JSON boolean values 'true' or 'false'.
ticketNumber Copied to clipboard String

The airline ticket number associated with the transaction.

Data may consist of the characters 0-9, a-z, A-Z
Min length:11
Max length:16
totalFare Copied to clipboard Number

Total fare for all trip legs on the ticket.

Data is a string that consists of the characters 0-9 and '.' and represents a valid decimal number.
Min length:1
Max length:14
totalFees Copied to clipboard Number

Total fee for all trip legs on the ticket.

Data is a string that consists of the characters 0-9 and '.' and represents a valid decimal number.
Min length:1
Max length:14
totalTaxes Copied to clipboard Number

Total taxes for all trip legs on the ticket.

Data is a string that consists of the characters 0-9 and '.' and represents a valid decimal number.
Min length:1
Max length:14
transactionType Copied to clipboard String

The type of transaction performed against this airline booking.

Transaction Type
Value must be a member of the following list. The values are case sensitive.
EXCHANGE_TICKETExchange Ticket
MISCELLANEOUS_CHARGEMiscellaneous Charge
TICKET_PURCHASETicket Purchase
TOUR_ORDERTour Order
billing Copied to clipboard Object

Information on the billing address including the contact details of the payer.

address Copied to clipboard Object

The address of the payer to whom the order is being billed.

This data may be used to qualify for better interchange rates on corporate purchase card transactions.
city Copied to clipboard String

The city portion of the address.

Data can consist of any characters
Min length:1
Max length:100
country Copied to clipboard String

The 3 letter ISO standard alpha country code of the address.

Data must consist of the characters A-Z
Min length:3
Max length:3
postcodeZip Copied to clipboard String

The post code or zip code of the address.

Data may consist of the characters 0-9, a-z, A-Z, ' ', '-'
Min length:1
Max length:10
stateProvince Copied to clipboard String

The state or province of the address.

Data can consist of any characters
Min length:1
Max length:20
street Copied to clipboard String

The first line of the address.

For example, this may be the street name and number, or the Post Office Box details.
Data can consist of any characters
Min length:1
Max length:100
street2 Copied to clipboard String

The second line of the address (if provided).

Data can consist of any characters
Min length:1
Max length:100
phone Copied to clipboard String

The phone number of the person to whom the order is being billed.

Data can consist of any characters
Min length:1
Max length:20
cardVerificationStrategy Copied to clipboard String

The strategy that should be used to verify the card details on the request.

If not provided the verification strategy on the merchant profile will be used to verify the card details on the request.
Used to nominate which type of Card Verification to use when card details are stored in the token repository. This setting overrides the default settings in Merchant Manager.
Value must be a member of the following list. The values are case sensitive.
ACQUIRERVerifies that the card is valid by performing an Authorize transaction for an nominal amount (e.g.$1.00)
BASICVerifies the card number is valid and that the card number falls within a valid BIN range
NONENo verification of the card details are performed
constraints Copied to clipboard Object

Information about any constraints which apply to this transaction.

Specify constraints to ensure the transaction conforms to pre-defined criteria. This is useful when your integration does not directly collect all the transaction values. For example, a session based integration or a hosted payment page integration.
paymentPlans Copied to clipboard Object

Information about the payment plan constraints which apply for this transaction.

Specify payment plan constraints to restrict the available payment plan options for this transaction.
numberOfDeferrals Copied to clipboard Number

The allowable number of deferral months for the payment plan.

JSON number data type, restricted to being positive or zero. In addition, the represented number may have no fractional part.
Min value:0
Max value:99
numberOfPayments Copied to clipboard Number

The allowable number of installments for the payment plan.

JSON number data type, restricted to being positive or zero. In addition, the represented number may have no fractional part.
Min value:1
Max value:99
supported Copied to clipboard String

The identifiers for the payment plans supported for this transaction.

If you wish to offer any payment plans to the payer, provide the plan identifiers in this field else pass it as empty.

See Payment Plans for the supported payment plans and their identifiers.
Data can consist of any characters
Min length:1
Max length:40
correlationId Copied to clipboard String

A transient identifier for the request, that can be used to match the response to the request.

The value provided is not validated, does not persist in the gateway, and is returned as provided in the response to the request.
Data can consist of any characters
Min length:1
Max length:100
currencyConversion Copied to clipboard Object

Information specific to the use of dynamic currency conversion (DCC).

payerAcceptance Copied to clipboard String

Status indicating how the payer acted on the DCC offer that you presented on the payment page.

Value must be a member of the following list. The values are case sensitive.
ACCEPTEDThe payer accepted the DCC offer presented to them and will pay in their own currency.
DECLINEDThe payer declined the DCC offer presented to them and will pay in your transaction currency.
NOT_OFFEREDDCC was not offered to the payer as a rate quote was not available for this transaction.
payerAmount Copied to clipboard Number

The total amount of the transaction in the payer's currency.

You must include this field if the payer accepted the DCC offer you presented to them.
Data is a string that consists of the characters 0-9 and '.' and represents a valid decimal number.
Min length:1
Max length:14
payerCurrency Copied to clipboard String

The currency of the DCC rate quote provided by your DCC Service Provider.

The currency must be expressed as an ISO 4217 alpha code, e.g. USD and must be different to that provided for transaction currency. You must include this field if the payer accepted the DCC offer you presented to them.
Data must consist of the characters A-Z
Min length:3
Max length:3
customer Copied to clipboard Object

Information associated with the customer's source of transaction.

ani Copied to clipboard String

The telephone number captured by ANI (Automatic Number Identification) when the customer calls to place the order.

Data can consist of any characters
Min length:1
Max length:10
aniCallType Copied to clipboard String

The 2 digit ANI information identifier provided by the telephone company to indicate the call type, for example, cellular (61-63), toll free (24,25), etc.

Data can consist of any characters
Min length:1
Max length:2
browser Copied to clipboard String

The User-Agent header of the browser the customer used to place the order.

For example, MOZILLA/4.0 (COMPATIBLE; MSIE 5.0; WINDOWS 95)
Data can consist of any characters
Min length:1
Max length:255
email Copied to clipboard String

The email address of the customer.

The field format restriction ensures that the email address is longer than 3 characters and adheres to a generous subset of valid RFC 2822 email addresses.
Ensures that the email address is longer than 3 characters and adheres to a generous subset of valid RFC 2822 email addresses
hostname Copied to clipboard String

The name of the server to which the customer is connected.

Data can consist of any characters
Min length:1
Max length:60
ipAddress Copied to clipboard String

The IP address of the computer used by the customer, in nnn.nnn.nnn.nnn format.

Data can consist of any characters
Min length:7
Max length:15
merchant Copied to clipboard String REQUIRED

The unique identifier issued to you by your payment provider.

This identifier can be up to 12 characters in length.
Data may consist of the characters 0-9, a-z, A-Z, '-', '_'
Min length:1
Max length:40
order Copied to clipboard Object

Information about the order associated with this transaction.

amount Copied to clipboard Number

The total amount for the order.

Data is a string that consists of the characters 0-9 and '.' and represents a valid decimal number.
Min length:1
Max length:14
currency Copied to clipboard String

The currency of the order expressed as an ISO 4217 alpha code, e.g. USD.

Data must consist of the characters A-Z
Min length:3
Max length:3
custom Copied to clipboard String

Information about this order that is of interest to you.

For example order.custom.X, where 'X' is defined by you and must be less than 100 characters from the set A-Z, a-z, 0-9. For example, order.custom.salesRegion. You can specify up to 50 such fields. They are not sent to acquirers.
Data can consist of any characters
Min length:1
Max length:250
customerNote Copied to clipboard String

A note from the payer about this order.

Data can consist of any characters
Min length:1
Max length:250
customerOrderDate Copied to clipboard String

The date the payer placed the order.

Data must comply with ISO 8601 extended date format, yyyy-mm-dd. This data may be used to qualify for better interchange rates on corporate purchase card transactions.
Data must comply with ISO 8601 extended date format, yyyy-mm-dd
customerReference Copied to clipboard String

The payer's own reference for the order (for example, the purchase order number).

This data may be used to qualify for better interchange rates on corporate purchase card transactions.
Data consists of ASCII characters
Min length:0
Max length:25
description Copied to clipboard String

Short textual description of the contents of the order.

Data can consist of any characters
Min length:1
Max length:127
id Copied to clipboard String

A unique identifier for this order to distinguish it from any other order you create.

Use this identifier when referring to this order in subsequent transactions and in retrieval operations. This value must be unique for every order created by your merchant profile.
Data can consist of any characters
Min length:1
Max length:40
notificationUrl Copied to clipboard

The URL to which the gateway will send Webhook notifications when an order is created or updated.

To receive notifications at this URL, you must enable Webhook notifications in Merchant Administration. Ensure the URL is HTTPS
Ensure that the URL begins with 'https' and is longer than 11 characters.
productSKU Copied to clipboard String

Unique SKU (Stock Keeping Unit) for the single, most expensive product associated with this order.

This data may be used to qualify for better interchange rates on corporate purchase card transactions.
Data can consist of any characters
Min length:1
Max length:15
reference Copied to clipboard String

The identifier of the order.

For example, a shopping cart number, an order number, or an invoice number.
Data can consist of any characters
Min length:1
Max length:40
requestorName Copied to clipboard String

The name of the person who requested the goods or services.

This data may be used to qualify for better interchange rates on corporate purchase card transactions.
Data can consist of any characters
Min length:1
Max length:100
shippingAndHandlingAmount Copied to clipboard Number

The total shipping and handling amount for the order.

Data is a string that consists of the characters 0-9 and '.' and represents a valid decimal number.
Min length:1
Max length:14
taxAmount Copied to clipboard Number

The total tax amount for the order.

If you do not provide this value but provide line item data, then this amount is calculated as the sum of the item.quantity times the item.unitTaxAmount for all the line items (total tax amount).
If you provide both this value and line item data, then the order.taxAmount MUST equal the total tax amount.
This data may be used to qualify for better interchange rates on corporate purchase card transactions.
Data is a string that consists of the characters 0-9 and '.' and represents a valid decimal number.
Min length:1
Max length:14
taxRegistrationId Copied to clipboard String

Your tax registration identifier provided by the tax authority (for example, federal tax identification number, ABN).

This data may be used to qualify for better interchange rates on corporate purchase card transactions.
Data can consist of any characters
Min length:1
Max length:20
walletIndicator Copied to clipboard String

The wallet indicator as returned by the wallet provider.

Data can consist of any characters
Min length:3
Max length:3
walletProvider Copied to clipboard String

Select the wallet provider for this interaction.

Value must be a member of the following list. The values are case sensitive.
MASTERPASS_ONLINEMasterPass Online wallet provider.
VISA_CHECKOUTVisa Checkout wallet provider.
partnerSolutionId Copied to clipboard String

If, when integrating with the gateway, you are using a solution (e.g. a shopping cart or e-commerce solution) provided, supported or certified by your payment service provider, enter the solution ID issued by your payment service provider here.

If your payment service provider has not provided you with a solution ID, you should ignore this field.
Data can consist of any characters
Min length:1
Max length:40
paymentPlan Copied to clipboard Object

Information about the payment plan selected by the cardholder.

Payment Plan is a payment option available to cardholders who wish to repay the purchase amount in a number of monthly installments with or without a deferral period.
numberOfDeferrals Copied to clipboard Number

The number of months for which the payment is deferred.

Data is a number between 0 and 99 represented as a string.
numberOfPayments Copied to clipboard Number

The number of monthly payments payable by the cardholder.

Data is a number between 1 and 99 represented as a string.
planId Copied to clipboard String

The identifier for the payment plan.

See Payment Plans for the supported payment plans and their identifiers.
Data can consist of any characters
Min length:1
Max length:40
paymentType Copied to clipboard String

The payment method the payer wishes to use to pay for this order.

Value must be a member of the following list. The values are case sensitive.
BANCANET
CREDIT
GIROPAY
PAYPAL
SOFORT
posTerminal Copied to clipboard Object
attended Copied to clipboard String

Indicates if the terminal has been attended by the merchant.

Value must be a member of the following list. The values are case sensitive.
ATTENDEDAttended terminal.
UNATTENDEDUnattended terminal.
UNKNOWN_OR_UNSPECIFIEDUnknown or unspecified.
cardholderActivated Copied to clipboard String

Indicates if the terminal is activated by the cardholder.

Value must be a member of the following list. The values are case sensitive.
NOT_CARDHOLDER_ACTIVATEDTerminal is not activated by the cardholder.
SELF_SERVICE_TERMINALTerminal is self serviced.
entryMode Copied to clipboard Number

Indicates the entry mode the cardholder/merchant used to enter the PAN and PIN details of the card.

The first two digits indicate the PAN entry mode and the last digit indicates the PIN entry mode. For example, 011 may indicate manual PAN entry (01) with PIN entry on the terminal (1).

PAN ENTRY Mode
01 - Manual Entry
02 - Magnetic stripe read, but full unaltered contents not provided
04 - OCR/MICR coding read
05 - PAN auto entry via chip
07 - Auto-entry via contactless magnetic chip
79 - Chip card at chip-capable terminal was unable to process transaction using data on the chip or magnetic stripe on the card-therefore, PAN entry via manual entry
80 - Chip card at chip-capable terminal was unable to process transaction using data on the chip therefore; the terminal defaulted to the magnetic stripe read for the PAN. This is referred to as fallback.
90 - Magnetic stripe read and full, unaltered contents provided
91 - Auto-entry via contactless magnetic strip

PIN Entry Mode
0 - Unspecified or unknown
1 - Terminal has PIN entry capability
2 - Terminal does not have PIN entry capability (default)
8 - Terminal has PIN entry capability but PIN pad is not currently operative
Data is a string that consists of the characters 0-9.
Min length:3
Max length:3
inputCapability Copied to clipboard String

Indicates the type of input the terminal is capable of receiving.

Inputs include Magnetic strip read (MSR) key entry, chip, contactless MSR/chip, etc.
Value must be a member of the following list. The values are case sensitive.
CHIPChip read only.
CHIP_AND_KEY_ENTRY_AND_MAGNETIC_STRIPEMSR, chip and key entry.
CHIP_AND_MAGNETIC_STRIPEMSR and chip.
CONTACTLESS_CHIPContactless chip.
CONTACTLESS_MAGNETIC_STRIPEContactless MSR.
KEY_ENTRYKey entry only.
KEY_ENTRY_AND_MAGNETIC_STRIPEMSR and key entry.
MAGNETIC_STRIPEMagnetic strip read (MSR) only.
location Copied to clipboard String

Indicates the physical location of the terminal in relation to the card acceptor facility.

Value must be a member of the following list. The values are case sensitive.
OFF_CARD_ACCEPTOR_PREMISESOff premises of card acceptor.
ON_CARD_ACCEPTOR_PREMISESOn premises of card acceptor.
name Copied to clipboard String

The name that you use to identify the Point Of Sale instance.

This should uniquely identify one POS within your business. Examples could be S43_L12 (Lane 12 in Shop 43) or Kiosk_76. This fields can be used for your search or reporting needs, and might be used by risk processing systems.
Data can consist of any characters
Min length:1
Max length:8
responseControls Copied to clipboard Object

Container for fields that control the response returned for the request.

sensitiveData Copied to clipboard String

Indicates how sensitive data is returned in the response.

Data can consist of any characters
Min length:1
Max length:50
session Copied to clipboard Object REQUIRED

Session Information

id Copied to clipboard String REQUIRED

The identifier of the session

Data consists of ASCII characters
Min length:31
Max length:35
status Copied to clipboard String REQUIRED

Status of the session based on the success or otherwise of the last interaction with the session.

Status of the session based on the success or otherwise of the last interaction with the session.
Value must be a member of the following list. The values are case sensitive.
CREATEDThe session was successfully created using the Create Session operation.
INVALIDOne or more values for the request fields contained in the session are invalid. An operation request using this session will be rejected by the payment gateway.
LOCKEDThe session has been locked for updates because you have submitted an operation request using the session. The card security code has been deleted from the session.
VALIDAll the values for the request fields contained in the session are valid. You can successfully submit an operation request using this session.
shipping Copied to clipboard Object

Information on the shipping address including the contact details of the addressee.

address Copied to clipboard Object

The address to which the goods contained in this order are being shipped.

This data may be used to qualify for better interchange rates on corporate purchase card transactions.
city Copied to clipboard String

The city portion of the address.

Data can consist of any characters
Min length:1
Max length:100
country Copied to clipboard String

The 3 letter ISO standard alpha country code of the address.

Data must consist of the characters A-Z
Min length:3
Max length:3
postcodeZip Copied to clipboard String

The post code or zip code of the address.

Data may consist of the characters 0-9, a-z, A-Z, ' ', '-'
Min length:1
Max length:10
stateProvince Copied to clipboard String

The state or province of the address.

Data can consist of any characters
Min length:1
Max length:20
street Copied to clipboard String

The first line of the address.

For example, this may be the street name and number, or the Post Office Box details.
Data can consist of any characters
Min length:1
Max length:100
street2 Copied to clipboard String

The second line of the address (if provided).

Data can consist of any characters
Min length:1
Max length:100
firstName Copied to clipboard String

The first name of the person to whom the order is being shipped.

Data can consist of any characters
Min length:1
Max length:50
lastName Copied to clipboard String

The last name or surname of the person to whom the order is being shipped.

Data can consist of any characters
Min length:1
Max length:50
method Copied to clipboard String

The shipping method code to indicate the time frame and the priority of the order.

Value must be a member of the following list. The values are case sensitive.
ELECTRONICElectronic delivery.
GROUNDGround (4 or more days).
OVERNIGHTOvernight (next day).
PRIORITYPriority (2-3 days).
SAME_DAYSame day.
phone Copied to clipboard String

The phone number of the person to whom the order is being shipped.

Data can consist of any characters
Min length:1
Max length:20
sourceOfFunds Copied to clipboard Object

The details describing the source of the funds to be used.

For card payments these may be represented by combining one or more of the following: explicitly provided card details, a session identifier which the gateway will use to look up the card details and/or a card token. Precedence rules will be applied in that explicitly provided card details will override session card details which will override card token details. Each of these may represent partial card details, however the combination must result in a full and complete set of card details. See Using Multiple Sources of Card Details for examples.
provided Copied to clipboard Object

Information about the source of funds when it is directly provided (as opposed to via a token or session).

For browser payments, the source of funds details are usually collected from the payer on the payment provider's website and provided to you when you retrieve the transaction details (for a successful transaction). However, for some payment types (such as giropay), you must collect the information from the payer and supply it here.
card Copied to clipboard Object

Details as shown on the card.

expiry Copied to clipboard Object

Expiry date, as shown on the card.

month Copied to clipboard Number

Month, as shown on the card.

Months are numbered January=1, through to December=12.
Data is a number between 1 and 12 represented as a string.
year Copied to clipboard Number

Year, as shown on the card.

The Common Era year is 2000 plus this value.
Data is a string that consists of the characters 0-9.
Min length:2
Max length:2
holder Copied to clipboard Object

The payer's name, to whom the bill is being sent.

This data may be used to qualify for better interchange rates on corporate purchase card transactions.
firstName Copied to clipboard String

The payer's first name.

Data can consist of any characters
Min length:1
Max length:50
lastName Copied to clipboard String

The payer's last or surname.

Data can consist of any characters
Min length:1
Max length:50
number Copied to clipboard Number

Credit card number as printed on the card.

Data is a string that consists of the characters 0-9.
Min length:9
Max length:19
prefix Copied to clipboard Number

The first 6 digits of the card number up to a maximum of 9 digits, as printed on the card.

Data is a string that consists of the characters 0-9.
Min length:6
Max length:9
securityCode Copied to clipboard Number

Card verification code, as printed on the back or front of the card.

Data is a string that consists of the characters 0-9.
Min length:3
Max length:4
sequenceNumber Copied to clipboard Number

The card sequence number for transactions where the data is read through a chip on the EMV card.

Data is a number between 0 and 999 represented as a string.
token Copied to clipboard String

Uniquely identifies a card and associated details.

Data may consist of the characters 0-9, a-z, A-Z
Min length:1
Max length:40
type Copied to clipboard String

The payment method your payer has chosen for this payment.

Value must be a member of the following list. The values are case sensitive.
CARDThe customer selected to pay using a credit or debit card. The payer's card details must be provided.
token Copied to clipboard String

Uniquely identifies a card and associated details.

Data may consist of the characters 0-9, a-z, A-Z
Min length:1
Max length:40
transaction Copied to clipboard Object

Information about this transaction.

acquirer Copied to clipboard Object

Additional information to be passed to acquirer.

customData Copied to clipboard String

Additional information requested by the acquirer which cannot be passed using other available data fields.

This field must not contain sensitive data.
Data can consist of any characters, but sensitive data will be rejected
Min length:1
Max length:2048
amount Copied to clipboard Number

Transaction Amount.

Expressed as a decimal number in the units of the currency. For example 12.34 in USD is the amount 12 dollars and 34 cents.
Data is a string that consists of the characters 0-9 and '.' and represents a valid decimal number.
Min length:1
Max length:14
authorizationCode Copied to clipboard String

Value generated by the issuing bank in response to a proposal to transfer funds.

Data may consist of the characters 0-9, a-z, A-Z
Min length:1
Max length:6
cashAdvance Copied to clipboard Boolean

Set this flag if the transaction is a manual cash disbursement transaction, i.e. cash is disbursed upon the acceptance of a card by a financial institution teller.

JSON boolean values 'true' or 'false'.
currency Copied to clipboard String

The currency which should be used for acquirer card verification.

Not required for basic verification.
Data must consist of the characters A-Z
Min length:3
Max length:3
frequency Copied to clipboard String

Indicates the frequency of the transaction offered to the payer.

Value must be a member of the following list. The values are case sensitive.
INSTALLMENTIndicates an installment transaction where the payer authorizes you to deduct multiple payments over an agreed period of time for a single purchase.
RECURRINGIndicates a recurring transaction where the payer authorizes you to automatically debit their accounts for bill or invoice payments.
SINGLEIndicates a single transaction where a single payment is used to complete the order.
id Copied to clipboard String

Unique identifier for this transaction to distinguish it from any other transactions on the order.

Data can consist of any characters
Min length:1
Max length:40
item Copied to clipboard Object

Information about the items the payer purchases with the order.

description Copied to clipboard String

Description for the item with information such as size, color, etc.

For example, 'Color:Red, Size:M'
Data can consist of any characters
Min length:1
Max length:127
name Copied to clipboard String

A short name describing the item.

Data can consist of any characters
Min length:1
Max length:127
quantity Copied to clipboard Number

The quantity of the item.

Data is a number between 1 and 9999999999999999 represented as a string.
sku Copied to clipboard String

The SKU (Stock Keeping Unit) or the item identifier for this item.

Data can consist of any characters
Min length:1
Max length:127
unitPrice Copied to clipboard Number

The cost price for the item.

This amount is multiplied with the item.quantity to determine the total amount for this item.
Data is a string that consists of the characters 0-9, '.' and '-' and represents a valid decimal number.
Min length:1
Max length:14
unitTaxAmount Copied to clipboard Number

The tax amount for the item.

This amount is multiplied with the item.quantity to determine the total tax amount for this item.
Data is a string that consists of the characters 0-9, '.' and '-' and represents a valid decimal number.
Min length:1
Max length:14
merchantNote Copied to clipboard String

Your note about this transaction.

Data can consist of any characters
Min length:1
Max length:250
reference Copied to clipboard String

An optional identifier for this transaction.

Data can consist of any characters
Min length:1
Max length:40
source Copied to clipboard String

Indicates the source through which you received the transaction.

Value must be a member of the following list. The values are case sensitive.
CALL_CENTRETransaction conducted via a call centre.
CARD_PRESENTTransaction where the card is presented to the merchant.
INTERNETTransaction conducted over the Internet.
MAIL_ORDERTransaction received by mail.
MOTOTransaction received by mail or telephone.
TELEPHONE_ORDERTransaction received by telephone.
VOICE_RESPONSETransaction conducted by a voice/DTMF recognition system.
targetTransactionId Copied to clipboard String

The identifier for the transaction you wish to refund.

That is the {transactionId} URL field for REST and the transaction.id field for NVP.

If you do not provide a target transaction ID the gateway will try to identify a transaction. If no transaction can be found or more than one transaction is identified, the request is rejected.
Data can consist of any characters
Min length:1
Max length:40
taxAmount Copied to clipboard Number

The amount of tax included in this transaction, if different to the default value.

The default value for a full capture is the Order.taxAmount. The default value for a full refund is the total tax captured on the order. Expressed as a decimal number in the units of the currency. For example 12.34 in USD is the amount 12 dollars and 34 cents. This data may be used to qualify for better interchange rates on corporate purchase card transactions.
Data is a string that consists of the characters 0-9 and '.' and represents a valid decimal number.
Min length:1
Max length:14
transactionSource Copied to clipboard String

The source through which the order has been received.

For example, INTERNET, MOTO.
Value must be a member of the following list. The values are case sensitive.
CALL_CENTRETransaction conducted via a call centre.
CARD_PRESENTTransaction where the card is presented to the merchant.
INTERNETTransaction conducted over the Internet.
MAIL_ORDERTransaction received by mail.
MOTOTransaction received by mail or telephone.
TELEPHONE_ORDERTransaction received by telephone.
VOICE_RESPONSETransaction conducted by a voice/DTMF recognition system.
userId Copied to clipboard String

The person who initiated this transaction.

For Merchant Administration, the person is identified by their logon name.
Data can consist of any characters
Min length:1
Max length:256
wallet Copied to clipboard Object
cancelURL Copied to clipboard

The URL to which you want the payer's browser to be redirected if the payer cancels the interaction on the wallet provider's website.

Mandatory for the MASTERPASS_ONLINE Wallet Provider.
Ensure that the URL begins with 'https' and is longer than 11 characters.
returnURL Copied to clipboard

The URL to which you want the payer's browser to be redirected after completing the interaction on the wallet provider's website.

To check the success or otherwise of the interaction use the Retrieve Session operation. Mandatory for the MASTERPASS_ONLINE Wallet Provider.
Ensure that the URL begins with 'https' and is longer than 11 characters.
visaCheckout Copied to clipboard Object
callId Copied to clipboard String

Provide the value of the field callId as returned by the Visa Checkout lightbox.

The gateway will use this, to retrieve the payer's payment details for the respective interaction from Visa Checkout and store them against the payment session (identified in field session.id). Mandatory for the VISA_CHECKOUT Wallet Provider.
Data can consist of any characters
Min length:1
Max length:48

Return Value Copied to clipboard

None