Skip to main content

Hosted Payment Session Request

Session creation request including payment mode, version, and customization options.

additionalReferencestring

Additional reference for reconciliation reports.

allowSaveCardInformationboolean

Optional. This will allow to save the card information. Defaults to 'false' if not provided. This option will only work if 'Enable Plugin Pay & Save Card' option is enabled at program or merchant level.

allowedPaymentMethods object

Allowed Payment methods.

aliPayPlusboolean

Conditional if mode is set to 0. Show AliPay+ option only if the option is enable for the merchant.Default is false.

applePayboolean

Conditional if mode is set to 0. Show Apple Pay option only if the option is enable for the merchant.Default is false.

bankAccountboolean

Conditional. Required if mode is set to 0 or 2. Show bank account option only if the option is enable for the merchant.Default is false.

cardboolean

Conditional. Required if mode is set to 0 or 2. Show card option only if the option is enable for the merchant.Default is true.

cardTokeniseboolean

Conditional. Required if mode is set to 0 or 2. Show card tokenise option only if the option is enable for the merchant.Default is true.

googlePayboolean

Conditional if mode is set to 0. Show Google Pay option only if the option is enable for the merchant.Default is false.

latitudePayboolean

Conditional if mode is set to 0. Show Latitude Pay option only if the option is enable for the merchant.Default is false.

payIdboolean

Conditional. Required if mode is set to 0 or 2. Show PayID option only if the option is enable for the merchant.Default is false.

payToboolean

Conditional. Required if mode is set to 0 or 2. Show PayTo option only if the option is enable for the merchant.Default is false.

slicePayboolean

Conditional if mode is set to 0. Show Slice Pay option only if the option is enable for the merchant.Default is false.

unionPayboolean

Conditional if mode is set to 0. Show UnionPay option only if the option is enable for the merchant.Default is false.

weChatboolean

Conditional if mode is set to 0. Show WeChat Pay option only if the option is enable for the merchant.Default is false.

apiKeystring

Set by the plugin. Leave it out of your request.

businessNumberstring

Optional. Business Number (For example: ABN). Used for reward programs if the Program is enabled to provide reward points.

callbackUrlstring

Optional. The URL will be called with HTTP POST method to submit the result. Refer to Payment Plugin documentation for payment response payload.

companyNamestring

Optional. Customer company name.

contactNumberstring

Optional. Contact number.

customerEmailstring

Required. Email address to which invoice will be emailed if the merchant is configured. It is mandatory from V4.

customerNamestring

Conditional. Required if mode is set to 0 or 2.

customerReferencestring

Conditional. Required if mode is set to 0 or 2.

customization object

Optional. Fields to customize the plugin fields.

customerNameLabelstring

Custom label to override default customer name display text.

customerReferenceLabelstring

Custom label to override default customer reference display text.

hideHeaderboolean

Hide the plugin header. Defaults to false if not provided.

hideMerchantLogoboolean

This will hide the merchant logo if any. Defaults to 'false' if not provided.

paymentAmountLabelstring

Custom label to override default payment amount display text.

titlestring

Plugin Title. Defaults to 'Process Payment' if not provided.

departureDatestring<date-time>

Conditional. DepartureDate is required for Slice Pay. Provide date in UTC ISO 8601 format as departureDate. format: yyyy-MM-dd.

displayModeinteger<int32>required

Optional. Must be one of the following two values 0 - Default(Modal) 1 - Redirect Url. Defaults to 0 if not provided. *Google Pay and Apple Pay works if Modal or Redirect Url with iframe is used.

Enum ValueDescription
0Default
1RedirectUrl
endpointUrlstringrequired

Endpoint url of the plugin. Just provide the base url. For example: https://pay.travelpay.com.au.

fingerprintstring

Set by the plugin. Leave it out of your request.

hideTermsAndConditionsboolean

Optional. This will hide the Terms and Conditions. Defaults to 'false' if not provided.

isJsPluginbooleanrequired

Is JS Plugin. Default is true. Set to false if you want to use without iframe.

merchantCodestringrequired

Merchant code. Make sure the merchant code is related to the API credentials.

merchantUniquePaymentIdstringrequired

Required. Payment id provided by the merchant. Must be unique and can not be reused if a transaction is processed using this id. This field also work as IdempotencyKey for request for successful requests.

modeinteger<int32>required

Optional. Must be one of the following three values 0 - Make Payment 1 - Tokenise 2 - Custom Payment 3 - Preauthorization. Defaults to 0 if not provided.

Enum ValueDescription
0DefaultPayment
1Tokenise
2CustomPayment
3Preauth
overrideFeePayerinteger<int32>

Optional. Must be one of the following three values 0 - Default(based on pricing profile) 1 - Merchant(Merchant will pay the fee regardless of pricing profile setting) 2 - Customer(Customer will pay the fee regardless of pricing profile setting) Defaults to 0 if not provided.

Enum ValueDescription
0Default
1Merchant
2Customer
paymentAccountProxystring

Conditional. Use this parameter to make a payment using a payment account proxy which is generated using mode '1'.

paymentAmountnumber<double>

Conditional. Required if mode is set to 0 or 2. Returns applicable fee if provided with mode 1.

redirectOnErrorboolean

All errors/exceptions will be return back the caller using the redirect url.

redirectUrlstringrequired

Required. The page will redirect to this URL with the result in the query string. Refer the return parameters section below.

sendConfirmationEmailToCustomerboolean

Optional. This will send confirmation email to customer. Defaults to 'false' if not provided.

sendConfirmationEmailToMerchantboolean

Optional. This will send confirmation email to merchant. Defaults to 'false' if not provided.

showFailedPaymentFeeOnTokenisingboolean

Optional if mode is set to 1. Show the applicable failed payment fees for the token at the end of the process.Default is false.

showFeeOnTokenisingboolean

Required if mode is set to 1. Show the applicable fees for the token at the end of the process.Default is false.

sku1string

Optional. Stock Keeping Unit - Optional text fields, allowing up to 50 alphanumeric characters. If the value exceeds 50 characters, only the first 50 characters will be retained and the rest discarded.

sku2string

Optional Stock Keeping Unit - Optional text fields, allowing up to 50 alphanumeric characters. If the value exceeds 50 characters, only the first 50 characters will be retained and the rest discarded.

timestampstring<date-time>required

Required. Timestamp is required from v4. Provide current datetime in UTC ISO 8601 format as timestamp. format: yyyy-MM-ddTHH:mm:ss.

Example: 2025-10-01T02:15:56
userModeinteger<int32>required

Optional. Must be one of the following two values 0 - Customer Facing - default (cardholder must enter CCV or 3DS) 1 - Merchant Facing(for merchant use only - no CCV or 3DS) - if supported by merchant options.

Enum ValueDescription
0Customer
1Merchant
versioninteger<int32>required

Required. Plugin version. Always use the latest.

Enum ValueDescription
1v1
2v2
3v3
4v4
5v5
Hosted Payment Session Request
{
"additionalReference": "string",
"allowSaveCardInformation": true,
"allowedPaymentMethods": {
"aliPayPlus": true,
"applePay": true,
"bankAccount": true,
"card": true,
"cardTokenise": true,
"googlePay": true,
"latitudePay": true,
"payId": true,
"payTo": true,
"slicePay": true,
"unionPay": true,
"weChat": true
},
"apiKey": "string",
"businessNumber": "string",
"callbackUrl": "string",
"companyName": "string",
"contactNumber": "string",
"customerEmail": "string",
"customerName": "string",
"customerReference": "string",
"customization": {
"customerNameLabel": "string",
"customerReferenceLabel": "string",
"hideHeader": true,
"hideMerchantLogo": true,
"paymentAmountLabel": "string",
"title": "string"
},
"departureDate": "2024-07-29T15:51:28.071Z",
"displayMode": 0,
"endpointUrl": "string",
"fingerprint": "string",
"hideTermsAndConditions": true,
"isJsPlugin": true,
"merchantCode": "string",
"merchantUniquePaymentId": "string",
"mode": 0,
"overrideFeePayer": 0,
"paymentAccountProxy": "string",
"paymentAmount": 0,
"redirectOnError": true,
"redirectUrl": "string",
"sendConfirmationEmailToCustomer": true,
"sendConfirmationEmailToMerchant": true,
"showFailedPaymentFeeOnTokenising": true,
"showFeeOnTokenising": true,
"sku1": "string",
"sku2": "string",
"timestamp": "2025-10-01T02:15:56",
"userMode": 0,
"version": 1
}