updateSession()

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

Usage

PaymentSession.updateSession(updateSessionCallback)

Example

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

Arguments

updateSessionCallback Function COMPULSORY

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

Fields:

status String COMPULSORY

The overall status of the PaymentSession.updateSession( ) request. Possible values are ok, fields_in_error, system_error, or request_timeout.

version String COMPULSORY

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

errors Object

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

String cause
Cause of the error. Possible values are 'missing' or 'invalid'.

Example

// An error response (fields_in_error)
    "errors": {
        "cardNumber": "invalid",
        "securityCode": "invalid"
    },

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

Example

// An error response (request_timeout)
    "errors": {
        "message": "Request timeout error message."
    },
// An error response (system_error)
    "errors": {
        "message": "System error message."
    },

3DSecure Object = OPTIONAL

Information on 3DSecure fields.
Fixed value

acsEci Number = OPTIONAL

It indicates the level of security and authentication of the transaction.
Fixed value
Validation Rules
Data is a string that consists of the characters 0-9.
minimum length
1
maximum length
2

authenticationRedirect Object = OPTIONAL

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.
Fixed value

pageGenerationMode String = OPTIONAL

The response to the Check 3DS Enrollment operation will include the information required for the selected option. By default, the Simple option is used.
Fixed value
Validation Rules
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.
CUSTOMIZED
A strategy to indicate that the user wishes to customize the response
SIMPLE
A simple interaction model where the response is complete and no user intervention is required.

responseUrl = OPTIONAL

Typically, this will be the merchant's website URL, which must be URL encoded for special characters such spaces, hyphens, etc.
Fixed value
Validation Rules
Ensure that the URL begins with 'https' and is longer than 11 characters.

simple Object = OPTIONAL

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

expectedHtmlEncoding String = OPTIONAL

Fixed value
Validation Rules
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_1
Latin1
UTF_8

redirectDisplayBackgroundColor String = OPTIONAL

By default, the color is set to #FFFFFF.
Fixed value
Validation Rules
Data may consist of the characters 0-9, a-z, A-Z, '#'
minimum length
4
maximum length
7

redirectDisplayContinueButtonText String = OPTIONAL

By default, the button text is set to "Click here to continue".
Fixed value
Validation Rules
Data can consist of any characters
minimum length
1
maximum length
40

redirectDisplayTitle String = OPTIONAL

By default, the title is set to "Process secure Payment".
Fixed value
Validation Rules
Data can consist of any characters
minimum length
1
maximum length
200

authenticationStatus String = OPTIONAL

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.
Fixed value
Validation Rules
Value must be a member of the following list. The values are case sensitive.
AUTHENTICATION_ATTEMPTED
Authentication was attempted but the card issuer did not perform the authentication.
AUTHENTICATION_NOT_AVAILABLE
An internal error occurred and Authentication is not currently available.
AUTHENTICATION_SUCCESSFUL
The cardholder was successfully authenticated.

authenticationToken = OPTIONAL

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.
Fixed value
Validation Rules
Data is Base64 encoded
allowable lengths
28 or 32

enrollmentStatus String = OPTIONAL

Fixed value
Validation Rules
Value must be a member of the following list. The values are case sensitive.
ENROLLED
The card is enrolled for 3DS authentication.
ENROLLMENT_STATUS_UNDETERMINED
The Issuer's ACS was unable to process the request to check enrollment or the card is ineligible.
NOT_ENROLLED
The card is not enrolled for 3DS authentication.

goodsDescription String = OPTIONAL

If supported by the ACS, this description will be displayed on the authentication page where the cardholder types in their secret password.
Fixed value
Validation Rules
Data can consist of any characters
minimum length
0
maximum length
30

xid = OPTIONAL

This field is mandatory for Verified By Visa transactions if authentication was available. The XID should be used in operation requests unaltered.
Fixed value
Validation Rules
Data is Base64 encoded
allowable length
28

3DSecureId String = OPTIONAL

It is first defined in the check3DSEnrollment operation, and then included in subsequent operations.It is not used when the authentication is performed externally.
Fixed value
Validation Rules
Data consists of ASCII characters
minimum length
1
maximum length
64

action Object = OPTIONAL

Specify actions if you wish to change the default behaviour of the transaction.
Fixed value

bypassMerchantRiskRules String = OPTIONAL

Fixed value
Validation Rules
Value must be a member of the following list. The values are case sensitive.
ALL

airline Object = OPTIONAL

Airline industry specific data
Fixed value

bookingReference String = OPTIONAL

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.
Fixed value
Validation Rules
Data may consist of the characters 0-9, a-z, A-Z
minimum length
6
maximum length
15

documentType String = OPTIONAL

Fixed value
Validation Rules
Document Type Code
Value must be a member of the following list. The values are case sensitive.
ADDITIONAL_COLLECTION
Additional Collection
AGENCY_EXCHANGE_ORDER
Agency Exchange Order
AGENCY_GROUP_TICKET
Agency Group Ticket
AGENCY_MISCELLANEOUS_CHARGE_ORDER
Agency Misc. Charge Order (MCO)
AGENCY_PASSENGER_TICKET
Agency Passenger Ticket
AGENCY_TOUR_ORDER_OR_VOUCHER
Agency Tour Order/Voucher
AIR_FREIGHT
SPD/Air Freight
ANIMAL_TRANSPORTATION_CHARGE
Animal Transportation Charge
CATALOGUE_MERCHANDISE_ORDERED
Catalogue Merchandise Ordered
CLUB_MEMBERSHIP_FEE
Club Membership Fee
COUPON_BOOK
Coupon Book
CREDIT_CLASS_SERVICE_ADJUSTMENT
Credit Class of Service Adjustment
CREDIT_DENIED_BOARDING
Credit Denied Boarding
CREDIT_EXCHANGE_REFUND
Credit Exchange Refund
CREDIT_LOST_TICKET_REFUND
Credit Lost Ticket Refund
CREDIT_MISCELLANEOUS_REFUND
Credit Misc. Refund
CREDIT_MULTIPLE_UNUSED_TICKETS
Credit Multiple Unused Tickets
CREDIT_OVERCHARGE_ADJUSTMENT
Credit Overcharge Adjustment
CREDIT_UNUSED_TRANSPORTATION
Credit Unused Transportation
DEBT_ADJUSTMENT_DUPLICATE_REFUND_OR_USE
Debt Adjustment Duplicate Refund/Use
DUTY_FREE_SALE
Duty Free Sale
EXCESS_BAGGAGE
Excess Baggage
EXCHANGE_ADJUSTMENT
Exchange Adjustment
EXCHANGE_ORDER
Exchange Order
FIREARMS_CASE
Firearms Case
FREQUENT_FLYER_FEE_OR_PURCHASE
Frequent Flyer Fee/Purchase
FREQUENT_FLYER_FULFILLMENT
Frequent Flyer Fulfillment
FREQUENT_FLYER_OVERNIGHT_DELIVERY_CHARGE
Frequent Flyer Overnight Delivery Charge
GROUP_TICKET
Group Ticket
IN_FLIGHT_ADJUSTMENT
In-flight Adjustment
IN_FLIGHT_CHARGES
In-flight Charges
IN_FLIGHT_DUTY_FREE_PURCHASE
In-flight Duty Free Purchase
IN_FLIGHT_MERCHANDISE_ORDERED
In-flight Merchandise Ordered
IN_FLIGHT_PHONE_CHARGES
In-flight Phone Charges
KENNEL_CHARGE
Kennel Charge
LOST_TICKET_APPLICATION
Lost Ticket Application
MISCELLANEOUS_CHARGE_ORDER_OR_PREPAID_TICKET_ADVICE
Misc. Charge Order (MCO) / Prepaid Ticket Auth.
MISCELLANEOUS_TAXES_FEES
Miscellaneous Tax(es) Fee(s)
PASSENGER_TICKET
Passenger Ticket
SELF_SERVICE_TICKETS
Self-Service Ticket(s)
SENIOR_CITIZEN_DISCOUNT_BOOKLETS
Senior Citizen Discount Booklets
SMALL_PACKAGE_DELIVERY
Small Package Delivery
SPECIAL_SERVICE_TICKET
Special Service Ticket
SUPPORTED_REFUND
Supported Refund
TICKET_BY_MAIL
Ticket by Mail
TOUR_DEPOSIT
Tour Deposit
TOUR_ORDER_VOUCHER
Tour Order Voucher
UNDERCHARGE_ADJUSTMENT
Undercharge Adjustment
UNSUPPORTED_REFUND
Unsupported Refund
UPGRADE_CHARGE
Upgrade Charge
VENDOR_REFUND_CREDIT
Vendor Refund Credit
VENDOR_SALE
Vendor Sale

itinerary Object = OPTIONAL

Itinerary details
Fixed value

leg Object = OPTIONAL

Travel leg details.
Fixed value

carrierCode = OPTIONAL

Fixed value
Validation Rules
Data must match regex
regex
\w{2}|\d{3}|\w{2}/\d{3}
message
Carrier code must be 2 characters, 3 digits or a combination of both in the format: ZZ/999

conjunctionTicketNumber String = OPTIONAL

Fixed value
Validation Rules
Data may consist of the characters 0-9, a-z, A-Z
minimum length
11
maximum length
16

couponNumber String = OPTIONAL

Each trip leg requires a separate coupon. The coupon within the series is identified by the coupon number.
Fixed value
Validation Rules
Data may consist of the characters 0-9, a-z, A-Z
minimum length
1
maximum length
1

departureAirport String = OPTIONAL

Fixed value
Validation Rules
Data must consist of the characters A-Z
minimum length
3
maximum length
3

departureDate String = OPTIONAL

Fixed value
Validation Rules
Data must comply with ISO 8601 extended date format, yyyy-mm-dd

departureTax Number = OPTIONAL

Fixed value
Validation Rules
Data is a string that consists of the characters 0-9 and '.' and represents a valid decimal number.
minimum length
1
maximum length
14

departureTime String = OPTIONAL

Fixed value
Validation Rules
Data must comply with ISO 8601 extended time formats, hh:mm[:ss]Z or hh:mm[:ss](+/-)hh[:mm]

destinationAirport String = OPTIONAL

Fixed value
Validation Rules
Data must consist of the characters A-Z
minimum length
3
maximum length
3

destinationArrivalTime String = OPTIONAL

Fixed value
Validation Rules
Data must comply with ISO 8601 extended time formats, hh:mm[:ss]Z or hh:mm[:ss](+/-)hh[:mm]

endorsementsRestrictions String = OPTIONAL

Fixed value
Validation Rules
Data may consist of the characters 0-9, a-z, A-Z
minimum length
1
maximum length
20

exchangeTicketNumber String = OPTIONAL

Fixed value
Validation Rules
Data may consist of the characters 0-9, a-z, A-Z
minimum length
11
maximum length
16

fare Number = OPTIONAL

Fixed value
Validation Rules
Data is a string that consists of the characters 0-9 and '.' and represents a valid decimal number.
minimum length
1
maximum length
14

fareBasis String = OPTIONAL

Fixed value
Validation Rules
Data may consist of the characters 0-9, a-z, A-Z
minimum length
1
maximum length
24

fees Number = OPTIONAL

Fixed value
Validation Rules
Data is a string that consists of the characters 0-9 and '.' and represents a valid decimal number.
minimum length
1
maximum length
14

flightNumber String = OPTIONAL

Fixed value
Validation Rules
Data may consist of the characters 0-9, a-z, A-Z
minimum length
4
maximum length
6

stopoverPermitted Boolean = OPTIONAL

Fixed value
Validation Rules
JSON boolean values 'true' or 'false'.

taxes Number = OPTIONAL

Fixed value
Validation Rules
Data is a string that consists of the characters 0-9 and '.' and represents a valid decimal number.
minimum length
1
maximum length
14

travelClass String = OPTIONAL

Fixed value
Validation Rules
Data may consist of the characters 0-9, a-z, A-Z
minimum length
1
maximum length
3

numberInParty Number = OPTIONAL

Fixed value
Validation Rules
Data is a string that consists of the characters 0-9.
minimum length
1
maximum length
3

originCountry String = OPTIONAL

Fixed value
Validation Rules
Data must consist of the characters A-Z
minimum length
3
maximum length
3

passenger Object = OPTIONAL

Passenger details
Fixed value

firstName String = OPTIONAL

Fixed value
Validation Rules
Data can consist of any characters
minimum length
1
maximum length
50

lastName String = OPTIONAL

Fixed value
Validation Rules
Data can consist of any characters
minimum length
1
maximum length
20

middleName String = OPTIONAL

Fixed value
Validation Rules
Data can consist of any characters
minimum length
1
maximum length
50

specificInformation String = OPTIONAL

Fixed value
Validation Rules
Data may consist of the characters 0-9, a-z, A-Z
minimum length
1
maximum length
59

title String = OPTIONAL

Fixed value
Validation Rules
Data can consist of any characters
minimum length
1
maximum length
20

planNumber String = OPTIONAL

Fixed value
Validation Rules
Data may consist of the characters 0-9, a-z, A-Z
minimum length
2
maximum length
2

ticket Object = OPTIONAL

Ticket details
Fixed value

conjunctionTicketIndicator Boolean = OPTIONAL

Conjunction ticket refers to two or more tickets concurrently issued to a passenger and which together constitute a single contract of carriage.
Fixed value
Validation Rules
JSON boolean values 'true' or 'false'.

customerReference String = OPTIONAL

For example, Frequent Flyer number.
Fixed value
Validation Rules
Data can consist of any characters
minimum length
1
maximum length
20

eTicket Boolean = OPTIONAL

Fixed value
Validation Rules
JSON boolean values 'true' or 'false'.

exchangedTicketNumber String = OPTIONAL

Fixed value
Validation Rules
Data may consist of the characters 0-9, a-z, A-Z
minimum length
11
maximum length
16

issue Object = OPTIONAL

Ticket issue information.
Fixed value

address String = OPTIONAL

Fixed value
Validation Rules
Data can consist of any characters
minimum length
1
maximum length
16

carrierCode = OPTIONAL

Fixed value
Validation Rules
Data must match regex
regex
\w{2}|\d{3}|\w{2}/\d{3}
message
Carrier code must be 2 characters, 3 digits or a combination of both in the format: ZZ/999

carrierName String = OPTIONAL

Fixed value
Validation Rules
Data may consist of the characters 0-9, a-z, A-Z
minimum length
1
maximum length
25

city String = OPTIONAL

Fixed value
Validation Rules
Data may consist of the characters 0-9, a-z, A-Z
minimum length
1
maximum length
18

country String = OPTIONAL

Fixed value
Validation Rules
Data must consist of the characters A-Z
minimum length
3
maximum length
3

date String = OPTIONAL

Fixed value
Validation Rules
Data must comply with ISO 8601 extended date format, yyyy-mm-dd

travelAgentCode String = OPTIONAL

Fixed value
Validation Rules
Data may consist of the characters 0-9, a-z, A-Z
minimum length
8
maximum length
9

travelAgentName String = OPTIONAL

Fixed value
Validation Rules
Data may consist of the characters 0-9, a-z, A-Z
minimum length
1
maximum length
30

restricted Boolean = OPTIONAL

Fixed value
Validation Rules
JSON boolean values 'true' or 'false'.

ticketNumber String = OPTIONAL

Fixed value
Validation Rules
Data may consist of the characters 0-9, a-z, A-Z
minimum length
11
maximum length
16

totalFare Number = OPTIONAL

Fixed value
Validation Rules
Data is a string that consists of the characters 0-9 and '.' and represents a valid decimal number.
minimum length
1
maximum length
14

totalFees Number = OPTIONAL

Fixed value
Validation Rules
Data is a string that consists of the characters 0-9 and '.' and represents a valid decimal number.
minimum length
1
maximum length
14

totalTaxes Number = OPTIONAL

Fixed value
Validation Rules
Data is a string that consists of the characters 0-9 and '.' and represents a valid decimal number.
minimum length
1
maximum length
14

transactionType String = OPTIONAL

Fixed value
Validation Rules
Transaction Type
Value must be a member of the following list. The values are case sensitive.
EXCHANGE_TICKET
Exchange Ticket
MISCELLANEOUS_CHARGE
Miscellaneous Charge
TICKET_PURCHASE
Ticket Purchase
TOUR_ORDER
Tour Order

billing Object = OPTIONAL

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

address Object = OPTIONAL

This data may be used to qualify for better interchange rates on corporate purchase card transactions.
Fixed value

city String = OPTIONAL

Fixed value
Validation Rules
Data can consist of any characters
minimum length
1
maximum length
100

country String = OPTIONAL

Fixed value
Validation Rules
Data must consist of the characters A-Z
minimum length
3
maximum length
3

postcodeZip String = OPTIONAL

Fixed value
Validation Rules
Data may consist of the characters 0-9, a-z, A-Z, ' ', '-'
minimum length
1
maximum length
10

stateProvince String = OPTIONAL

Fixed value
Validation Rules
Data can consist of any characters
minimum length
1
maximum length
20

street String = OPTIONAL

For example, this may be the street name and number, or the Post Office Box details.
Fixed value
Validation Rules
Data can consist of any characters
minimum length
1
maximum length
100

street2 String = OPTIONAL

Fixed value
Validation Rules
Data can consist of any characters
minimum length
1
maximum length
100

phone String = OPTIONAL

Fixed value
Validation Rules
Data can consist of any characters
minimum length
1
maximum length
20

cardVerificationStrategy String = OPTIONAL

If not provided the verification strategy on the merchant profile will be used to verify the card details on the request.
Fixed value
Validation Rules
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.
ACQUIRER
Verifies that the card is valid by performing an Authorize transaction for an nominal amount (e.g.$1.00)
BASIC
Verifies the card number is valid and that the card number falls within a valid BIN range
NONE
No verification of the card details are performed

constraints Object = OPTIONAL

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.
Fixed value

paymentPlans Object = OPTIONAL

Specify payment plan constraints to restrict the available payment plan options for this transaction.
Fixed value

numberOfDeferrals Number = OPTIONAL

Fixed value
Validation Rules
JSON number data type, restricted to being positive or zero. In addition, the represented number may have no fractional part.
minimum value
0
maximum value
99

numberOfPayments Number = OPTIONAL

Fixed value
Validation Rules
JSON number data type, restricted to being positive or zero. In addition, the represented number may have no fractional part.
minimum value
1
maximum value
99

supported String = OPTIONAL

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.
Fixed value
Validation Rules
Data can consist of any characters
minimum length
1
maximum length
40

correlationId String = OPTIONAL

The value provided is not validated, does not persist in the gateway, and is returned as provided in the response to the request.
Fixed value
Validation Rules
Data can consist of any characters
minimum length
1
maximum length
100

currencyConversion Object = OPTIONAL

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

payerAcceptance String = OPTIONAL

Fixed value
Validation Rules
Value must be a member of the following list. The values are case sensitive.
ACCEPTED
The payer accepted the DCC offer presented to them and will pay in their own currency.
DECLINED
The payer declined the DCC offer presented to them and will pay in your transaction currency.
NOT_OFFERED
DCC was not offered to the payer as a rate quote was not available for this transaction.

payerAmount Number = OPTIONAL

You must include this field if the payer accepted the DCC offer you presented to them.
Fixed value
Validation Rules
Data is a string that consists of the characters 0-9 and '.' and represents a valid decimal number.
minimum length
1
maximum length
14

payerCurrency String = OPTIONAL

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.
Fixed value
Validation Rules
Data must consist of the characters A-Z
minimum length
3
maximum length
3

customer Object = OPTIONAL

Information associated with the customer's source of transaction.
Fixed value

ani String = OPTIONAL

Fixed value
Validation Rules
Data can consist of any characters
minimum length
1
maximum length
10

aniCallType String = OPTIONAL

Fixed value
Validation Rules
Data can consist of any characters
minimum length
1
maximum length
2

browser String = OPTIONAL

For example, MOZILLA/4.0 (COMPATIBLE; MSIE 5.0; WINDOWS 95)
Fixed value
Validation Rules
Data can consist of any characters
minimum length
1
maximum length
255

email String = OPTIONAL

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.
Fixed value
Validation Rules
Ensures that the email address is longer than 3 characters and adheres to a generous subset of valid RFC 2822 email addresses

hostname String = OPTIONAL

Fixed value
Validation Rules
Data can consist of any characters
minimum length
1
maximum length
60

ipAddress String = OPTIONAL

Fixed value
Validation Rules
Data can consist of any characters
minimum length
7
maximum length
15

merchant String = COMPULSORY

Fixed value
Validation Rules
Data may consist of the characters 0-9, a-z, A-Z, '-', '_'
minimum length
1
maximum length
40

order Object = OPTIONAL

Information about the order associated with this transaction.
Fixed value

amount Number = OPTIONAL

If you supply this value then you must provide order.currency to filter the response values.
Fixed value
Validation Rules
Data is a string that consists of the characters 0-9 and '.' and represents a valid decimal number.
minimum length
1
maximum length
14

currency String = OPTIONAL

Fixed value
Validation Rules
Data must consist of the characters A-Z
minimum length
3
maximum length
3

custom String = OPTIONAL

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.
Fixed value
Validation Rules
Data can consist of any characters
minimum length
1
maximum length
250

customerNote String = OPTIONAL

Fixed value
Validation Rules
Data can consist of any characters
minimum length
1
maximum length
250

customerOrderDate String = OPTIONAL

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.
Fixed value
Validation Rules
Data must comply with ISO 8601 extended date format, yyyy-mm-dd

customerReference String = OPTIONAL

This data may be used to qualify for better interchange rates on corporate purchase card transactions.
Fixed value
Validation Rules
Data consists of ASCII characters
minimum length
0
maximum length
25

description String = OPTIONAL

Fixed value
Validation Rules
Data can consist of any characters
minimum length
1
maximum length
127

id String = OPTIONAL

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.
Fixed value
Validation Rules
Data can consist of any characters
minimum length
1
maximum length
40

notificationUrl = OPTIONAL

To receive notifications at this URL, you must enable Webhook notifications in Merchant Administration. Ensure the URL is HTTPS
Fixed value
Validation Rules
Ensure that the URL begins with 'https' and is longer than 11 characters.

productSKU String = OPTIONAL

This data may be used to qualify for better interchange rates on corporate purchase card transactions.
Fixed value
Validation Rules
Data can consist of any characters
minimum length
1
maximum length
15

reference String = OPTIONAL

For example, a shopping cart number, an order number, or an invoice number.
Fixed value
Validation Rules
Data can consist of any characters
minimum length
1
maximum length
40

requestorName String = OPTIONAL

This data may be used to qualify for better interchange rates on corporate purchase card transactions.
Fixed value
Validation Rules
Data can consist of any characters
minimum length
1
maximum length
100

shippingAndHandlingAmount Number = OPTIONAL

Fixed value
Validation Rules
Data is a string that consists of the characters 0-9 and '.' and represents a valid decimal number.
minimum length
1
maximum length
14

taxAmount Number = OPTIONAL

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.
Fixed value
Validation Rules
Data is a string that consists of the characters 0-9 and '.' and represents a valid decimal number.
minimum length
1
maximum length
14

taxRegistrationId String = OPTIONAL

This data may be used to qualify for better interchange rates on corporate purchase card transactions.
Fixed value
Validation Rules
Data can consist of any characters
minimum length
1
maximum length
20

walletIndicator String = OPTIONAL

Fixed value
Validation Rules
Data can consist of any characters
minimum length
3
maximum length
3

walletProvider String = OPTIONAL

Fixed value
Validation Rules
Value must be a member of the following list. The values are case sensitive.
MASTERPASS_ONLINE
MasterPass Online wallet provider.
VISA_CHECKOUT
Visa Checkout wallet provider.

partnerSolutionId String = OPTIONAL

If your payment service provider has not provided you with a solution ID, you should ignore this field.
Fixed value
Validation Rules
Data can consist of any characters
minimum length
1
maximum length
40

paymentPlan Object = OPTIONAL

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.
Fixed value

numberOfDeferrals Number = OPTIONAL

Fixed value
Validation Rules
Data is a number between 0 and 99 represented as a string.

numberOfPayments Number = OPTIONAL

Fixed value
Validation Rules
Data is a number between 1 and 99 represented as a string.

planId String = OPTIONAL

See Payment Plans for the supported payment plans and their identifiers.
Fixed value
Validation Rules
Data can consist of any characters
minimum length
1
maximum length
40

paymentType String = OPTIONAL

Fixed value
Validation Rules
Value must be a member of the following list. The values are case sensitive.
BANCANET
CREDIT
GIROPAY
PAYPAL
SOFORT

posTerminal Object = OPTIONAL

Fixed value

attended String = OPTIONAL

Fixed value
Validation Rules
Value must be a member of the following list. The values are case sensitive.
ATTENDED
Attended terminal.
UNATTENDED
Unattended terminal.
UNKNOWN_OR_UNSPECIFIED
Unknown or unspecified.

cardholderActivated String = OPTIONAL

Fixed value
Validation Rules
Value must be a member of the following list. The values are case sensitive.
NOT_CARDHOLDER_ACTIVATED
Terminal is not activated by the cardholder.
SELF_SERVICE_TERMINAL
Terminal is self serviced.

entryMode Number = OPTIONAL

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
Fixed value
Validation Rules
Data is a string that consists of the characters 0-9.
minimum length
3
maximum length
3

inputCapability String = OPTIONAL

Inputs include Magnetic strip read (MSR) key entry, chip, contactless MSR/chip, etc.
Fixed value
Validation Rules
Value must be a member of the following list. The values are case sensitive.
CHIP
Chip read only.
CHIP_AND_KEY_ENTRY_AND_MAGNETIC_STRIPE
MSR, chip and key entry.
CHIP_AND_MAGNETIC_STRIPE
MSR and chip.
CONTACTLESS_CHIP
Contactless chip.
CONTACTLESS_MAGNETIC_STRIPE
Contactless MSR.
KEY_ENTRY
Key entry only.
KEY_ENTRY_AND_MAGNETIC_STRIPE
MSR and key entry.
MAGNETIC_STRIPE
Magnetic strip read (MSR) only.

location String = OPTIONAL

Fixed value
Validation Rules
Value must be a member of the following list. The values are case sensitive.
OFF_CARD_ACCEPTOR_PREMISES
Off premises of card acceptor.
ON_CARD_ACCEPTOR_PREMISES
On premises of card acceptor.

name String = OPTIONAL

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.
Fixed value
Validation Rules
Data can consist of any characters
minimum length
1
maximum length
8

responseControls Object = OPTIONAL

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

sensitiveData String = OPTIONAL

Fixed value
Validation Rules
Data can consist of any characters
minimum length
1
maximum length
50

session Object = COMPULSORY

Session Information
Fixed value

id String = COMPULSORY

Fixed value
Validation Rules
Data consists of ASCII characters
minimum length
31
maximum length
35

status String = COMPULSORY

Fixed value
Validation Rules
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.
CREATED
The session was successfully created using the Create Session operation.
INVALID
One 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.
LOCKED
The 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.
VALID
All the values for the request fields contained in the session are valid. You can successfully submit an operation request using this session.

shipping Object = OPTIONAL

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

address Object = OPTIONAL

This data may be used to qualify for better interchange rates on corporate purchase card transactions.
Fixed value

city String = OPTIONAL

Fixed value
Validation Rules
Data can consist of any characters
minimum length
1
maximum length
100

country String = OPTIONAL

Fixed value
Validation Rules
Data must consist of the characters A-Z
minimum length
3
maximum length
3

postcodeZip String = OPTIONAL

Fixed value
Validation Rules
Data may consist of the characters 0-9, a-z, A-Z, ' ', '-'
minimum length
1
maximum length
10

stateProvince String = OPTIONAL

Fixed value
Validation Rules
Data can consist of any characters
minimum length
1
maximum length
20

street String = OPTIONAL

For example, this may be the street name and number, or the Post Office Box details.
Fixed value
Validation Rules
Data can consist of any characters
minimum length
1
maximum length
100

street2 String = OPTIONAL

Fixed value
Validation Rules
Data can consist of any characters
minimum length
1
maximum length
100

firstName String = OPTIONAL

Fixed value
Validation Rules
Data can consist of any characters
minimum length
1
maximum length
50

lastName String = OPTIONAL

Fixed value
Validation Rules
Data can consist of any characters
minimum length
1
maximum length
50

method String = OPTIONAL

Fixed value
Validation Rules
Value must be a member of the following list. The values are case sensitive.
ELECTRONIC
Electronic delivery.
GROUND
Ground (4 or more days).
OVERNIGHT
Overnight (next day).
PRIORITY
Priority (2-3 days).
SAME_DAY
Same day.

phone String = OPTIONAL

Fixed value
Validation Rules
Data can consist of any characters
minimum length
1
maximum length
20

sourceOfFunds Object = OPTIONAL

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.
Fixed value

provided Object = OPTIONAL

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.
Fixed value

card Object = OPTIONAL

Details as shown on the card.
Fixed value

expiry Object = OPTIONAL

Expiry date, as shown on the card.
Fixed value

month Number = OPTIONAL

Months are numbered January=1, through to December=12.
Fixed value
Validation Rules
Data is a number between 1 and 12 represented as a string.

year Number = OPTIONAL

The Common Era year is 2000 plus this value.
Fixed value
Validation Rules
Data is a string that consists of the characters 0-9.
minimum length
2
maximum length
2

holder Object = OPTIONAL

This data may be used to qualify for better interchange rates on corporate purchase card transactions.
Fixed value

firstName String = OPTIONAL

Fixed value
Validation Rules
Data can consist of any characters
minimum length
1
maximum length
50

lastName String = OPTIONAL

Fixed value
Validation Rules
Data can consist of any characters
minimum length
1
maximum length
50

number Number = OPTIONAL

Fixed value
Validation Rules
Data is a string that consists of the characters 0-9.
minimum length
9
maximum length
19

prefix Number = OPTIONAL

Fixed value
Validation Rules
Data is a string that consists of the characters 0-9.
minimum length
6
maximum length
9

securityCode Number = OPTIONAL

Fixed value
Validation Rules
Data is a string that consists of the characters 0-9.
minimum length
3
maximum length
4

sequenceNumber Number = OPTIONAL

Fixed value
Validation Rules
Data is a number between 0 and 999 represented as a string.

token String = OPTIONAL

Fixed value
Validation Rules
Data may consist of the characters 0-9, a-z, A-Z
minimum length
1
maximum length
40

type String = OPTIONAL

Fixed value
Validation Rules
Value must be a member of the following list. The values are case sensitive.
CARD
The customer selected to pay using a credit or debit card. The payer's card details must be provided.

token String = OPTIONAL

Fixed value
Validation Rules
Data may consist of the characters 0-9, a-z, A-Z
minimum length
1
maximum length
40

transaction Object = OPTIONAL

Details of the transaction
Fixed value

acquirer Object = OPTIONAL

Additional information to be passed to acquirer.
Fixed value

customData String = OPTIONAL

This field must not contain sensitive data.
Fixed value
Validation Rules
Data can consist of any characters, but sensitive data will be rejected
minimum length
1
maximum length
2048

amount Number = OPTIONAL

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.
Fixed value
Validation Rules
Data is a string that consists of the characters 0-9 and '.' and represents a valid decimal number.
minimum length
1
maximum length
14

authorizationCode String = OPTIONAL

Fixed value
Validation Rules
Data may consist of the characters 0-9, a-z, A-Z
minimum length
1
maximum length
6

cashAdvance Boolean = OPTIONAL

Fixed value
Validation Rules
JSON boolean values 'true' or 'false'.

currency String = OPTIONAL

Fixed value
Validation Rules
Data must consist of the characters A-Z
minimum length
3
maximum length
3

frequency String = OPTIONAL

Fixed value
Validation Rules
Value must be a member of the following list. The values are case sensitive.
INSTALLMENT
Indicates an installment transaction where the payer authorizes you to deduct multiple payments over an agreed period of time for a single purchase.
RECURRING
Indicates a recurring transaction where the payer authorizes you to automatically debit their accounts for bill or invoice payments.
SINGLE
Indicates a single transaction where a single payment is used to complete the order.

id String = OPTIONAL

Fixed value
Validation Rules
Data can consist of any characters
minimum length
1
maximum length
40

item Object = OPTIONAL

Information about the items the payer purchases with the order.
Fixed value

description String = OPTIONAL

For example, 'Color:Red, Size:M'
Fixed value
Validation Rules
Data can consist of any characters
minimum length
1
maximum length
127

name String = OPTIONAL

Fixed value
Validation Rules
Data can consist of any characters
minimum length
1
maximum length
127

quantity Number = OPTIONAL

Fixed value
Validation Rules
Data is a number between 1 and 9999999999999999 represented as a string.

sku String = OPTIONAL

Fixed value
Validation Rules
Data can consist of any characters
minimum length
1
maximum length
127

unitPrice Number = OPTIONAL

This amount is multiplied with the item.quantity to determine the total amount for this item.
Fixed value
Validation Rules
Data is a string that consists of the characters 0-9, '.' and '-' and represents a valid decimal number.
minimum length
1
maximum length
14

unitTaxAmount Number = OPTIONAL

This amount is multiplied with the item.quantity to determine the total tax amount for this item.
Fixed value
Validation Rules
Data is a string that consists of the characters 0-9, '.' and '-' and represents a valid decimal number.
minimum length
1
maximum length
14

merchantNote String = OPTIONAL

Fixed value
Validation Rules
Data can consist of any characters
minimum length
1
maximum length
250

reference String = OPTIONAL

Fixed value
Validation Rules
Data can consist of any characters
minimum length
1
maximum length
40

source String = OPTIONAL

Fixed value
Validation Rules
Value must be a member of the following list. The values are case sensitive.
CALL_CENTRE
Transaction conducted via a call centre.
CARD_PRESENT
Transaction where the card is presented to the merchant.
INTERNET
Transaction conducted over the Internet.
MAIL_ORDER
Transaction received by mail.
MOTO
Transaction received by mail or telephone.
TELEPHONE_ORDER
Transaction received by telephone.
VOICE_RESPONSE
Transaction conducted by a voice/DTMF recognition system.

targetTransactionId String = OPTIONAL

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.
Fixed value
Validation Rules
Data can consist of any characters
minimum length
1
maximum length
40

taxAmount Number = OPTIONAL

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.
Fixed value
Validation Rules
Data is a string that consists of the characters 0-9 and '.' and represents a valid decimal number.
minimum length
1
maximum length
14

transactionSource String = OPTIONAL

For example, INTERNET, MOTO.
Fixed value
Validation Rules
Value must be a member of the following list. The values are case sensitive.
CALL_CENTRE
Transaction conducted via a call centre.
CARD_PRESENT
Transaction where the card is presented to the merchant.
INTERNET
Transaction conducted over the Internet.
MAIL_ORDER
Transaction received by mail.
MOTO
Transaction received by mail or telephone.
TELEPHONE_ORDER
Transaction received by telephone.
VOICE_RESPONSE
Transaction conducted by a voice/DTMF recognition system.

userId String = OPTIONAL

For Merchant Administration, the person is identified by their logon name.
Fixed value
Validation Rules
Data can consist of any characters
minimum length
1
maximum length
256

wallet Object = OPTIONAL

Fixed value

cancelURL = OPTIONAL

Mandatory for the MASTERPASS_ONLINE Wallet Provider.
Fixed value
Validation Rules
Ensure that the URL begins with 'https' and is longer than 11 characters.

returnURL = OPTIONAL

To check the success or otherwise of the interaction use the Retrieve Session operation. Mandatory for the MASTERPASS_ONLINE Wallet Provider.
Fixed value
Validation Rules
Ensure that the URL begins with 'https' and is longer than 11 characters.

visaCheckout Object = OPTIONAL

Fixed value

callId String = OPTIONAL

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.
Fixed value
Validation Rules
Data can consist of any characters
minimum length
1
maximum length
48

Example

 // 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"
}

Return Value

None

Copyright © 2023 MasterCard