1. Web SDK
Merchant Warrior API 2.0
  • API
    • Getting Started
    • Guides
      • Xero Connection
      • Xero Custom URL
      • wooCommerce PayID
      • Middleware
      • Hostaway
    • Direct API
      • getAccessToken
      • processCard
      • processAuth
      • processCapture
      • processBatch
      • retrieveBatch (CSV)
      • retrieveBatch (JSON Response)
      • retrieveBatch (JSON Notify)
      • refundCard
      • queryCard
      • processDDebit
      • processDDebitAuth
      • processVoid
      • verifyCard
      • queryDD
      • queryBIN
      • getSettlement
      • checkEnrollment
      • checkPARes
      • addBlacklistedCard
      • removeBlacklistedCard
      • queryBlacklistedCard
      • simulateNotify
      • getSurcharge
    • 3DS 2.0
      • Introduction
      • 3DS 2 Authentication Flows
      • Step 3 - 3DS Method Data
      • Step 5 - Challenge
      • Step 1 - getAccessToken
      • Step 2 - checkEnrollment
      • Step 4 - checkTDSAuth
      • Step 6 - checkPARes
      • Step 7 - processCard
      • Authorization Only processCard
    • PayLink
      • Introduction
      • Generate PayLink
    • PayID
      • Introduction
      • Create
      • Transaction
      • Get
      • Update
      • Status
      • List
      • Refund
    • PayTo
      • Introduction
      • Simulator
      • Certification
      • Actions and Statuses
      • Agreements
        • Agreements
        • Notifications
        • Create Agreement
        • Get Agreement
        • Amend Agreement
        • Amend Agreement Status
        • Recall Agreement Action
      • Payments
        • Payments
        • Notifications
        • Create Payment
        • Get Payment
        • Get Payment Status
        • Search Payments
    • Confirmation of Payee
      • Introduction
      • Sandbox Simulations
      • Validate
    • POS
      • Introduction
      • processPOS
      • refundPOS
      • voidPOS
      • deregisterPOS
    • Web SDK
      • Introduction
      • Usage
      • getAccessToken
      • Options
      • Initiate
      • Payframe Functionality
      • Middleware
      • addCard
    • Payframe
      • Introduction
      • Usage
      • Constructor
      • tdsCheck
      • Additional Functions
      • Styling
      • processCard
      • processAuth
    • Digital Wallets
      • Apple Pay Prerequisites
      • Google Pay Prerequisites
      • Web SDK
      • Manual Integration
      • processCard
      • addCard
      • getMerchantSession
      • decryptApplePayToken
    • Token Payments
      • Introduction
      • Key Management
      • addCard
      • removeCard
      • cardInfo
      • changeExpiry
      • processCard
      • processAuth
    • Batch
      • Introduction
      • Card Batches
      • Token Batches
      • Direct Debit Batches
    • Forter
      • Introduction
      • Testing
    • Payouts
      • Introduction
      • Sandbox Simulations
      • Notifications
      • Create Payouts
      • Get Payout Status
      • Resend Notifications
      • Get Payout Transaction Status
      • Get Payout Transaction Notify
    • Partner API
      • Introduction
      • addMerchant
      • updateMerchant
      • checkMerchant
    • Notifications
      • Notifications
  • Hosted Payment Page
    • processCard
  1. Web SDK

Options

The Web SDK has a number of options that can be used with your implementation. These options should be inserted into a <script> section on your page.
The options available are listed below.

Properties#

PropertyDescription
customerType: Object
customer.nameName of the customer
Type: String
customer.countryCountry of the customer
Type: String
customer.stateState of the customer
Type: String
customer.cityCity of the customer
Type: String
customer.addressStreet address of the customer
Type: String
customer.postCodePostcode of the customer
Type: String
customer.phonePhone number of the customer
Type: String
customer.emailEmail of the customer
Type: String
summaryType: Object
summary.totalType: Object
summary.total.amountTotal amount of the transaction, formatted with 2 decimal places for cents.
Type: String
summary.total.label?????????
Type: String
summary.customerType: Object
summary.addCardIndicates if the payment method used should be tokenised. If true, a cardID will be returned.
Type: Boolean
summary.recurringIndicates if the payment is a recurring payment.
Type: Boolean
summary.styleType: String
summary.googlePayType: Object
summary.googlePay.allowedAuthMethodsThe GP authentication method you wish to use. Can be one or both of the following -
* PAN_ONLY
* CRYPTOGRAM_3DS
Type: Array of strings
summary.googlePay.buttonHeightHeight, in pixels, of the Google Pay button.
Type: String
summary.googlePay.buttonWidthWidth, in pixels, of the Google Pay button.
Type: String
summary.googlePay.marginTopTop margin, in pixels, of the Google Pay button.
Type: String
summary.googlePay.marginBottomBottom margin, in pixels, of the Google Pay button.
Type: String
summary.googlepay.allowedCardNetworksOptional array specifying which card types are allowed. If not specified, all cards will be allowed.
Possible values include -
visa
mastercard
amex
Type: Array of strings
summary.googlepay.threeDSIndicates whether 3DS should be performed on the Google Pay transaction. This feature will detect if liability shift occurred, and if not, perform a separate 3DS process.
Type: String
summary.googlepay.allowCreditCardsIndicates whether Credit Cards will be allowed.
Type: Boolean
Default: true
summary.googlepay.allowPrepaidCardsIndicates whether Prepaid Cards will be allowed.
Type: Boolean
Default: true
summary.applePayType: Object
summary.applePay.buttonHeightHeight, in pixels, of the Apple Pay button.
Type: String
summary.applePay.buttonWidthWidth, in pixels, of the Apple Pay button.
Type: String
summary.applePay.marginTopTop margin, in pixels, of the Apple Pay button.
Type: String
summary.applePay.marginBottomBottom margin, in pixels, of the Apple Pay button.
Type: String
summary.applepay.allowedCardNetworksOptional array specifying which card types are allowed. If not specified, all cards will be allowed.
Possible values include -
visa
mastercard
amex
Type: Array of strings
summary.applepay.merchantCapabilitiesDefines the payment capabilities the merchant supports. Acceptable values include:
"supports3DS" (Required)
"supportsEMV" (Include only if China Union Pay transactions are supported)
"supportsCredit" (Optional, for credit card transactions)
"supportsDebit" (Optional, for debit card transactions)
Type: Array of strings
walletsAn array of values indicating what wallets you wish to use. The following values are valid -
* googlepay
* applepay
* basic-card
Type: Array of strings
payframeType: Object
payframe.threeDSIndicates if you wish to enable 3DS for payments through the Payframe.
Type: Boolean
payframe.submitUrlThe URL the Payframe should submit to. One of the following values should be used -
* Sandbox: https://base.merchantwarrior.com/payframe/
* Production: https://api.merchantwarrior.com/payframe/
Type: String
payframe.stylesAn object of CSS styles to apply to the Payframe. Possible options are shown here.
Type: Object
payframe.tdsStylesAn object of CSS styles to apply to the 3DS iFrame. Possible options are shown here.
Type: Object
optionsType: Object
options.environmentIndicates which environment to use. One of the following values -
* development
* production
Type: String
options.autoProcessIndicates if the token should be used to process the transaction as soon as it is obtained.
Type: Boolean
options.middlewareURL or Javascript promise to use as your middleware. Must be specified if autoProcess is set to false. More details below.
Type: String
transactionType: Object
transaction.transactionProductA product (or sale) id or description. We recommend using an order/product id. This field’s primary purpose is to help the transaction be identifiable for reporting and accounting purposes.
Type: String
transaction.transactionReferenceIDThis is a merchant’s unique reference ID for a transaction sent to Merchant Warrior. The main purpose of this ID is to verify the transaction via the queryCard method in the event a valid response is not received.
Type: String
transaction.storeIDThe value of this field is the merchant's store name. Please note that you need to contact Merchant Warrior to enable the storeID feature before you can use this parameter.
Type: String
transaction.custom1Freeform field. Returned as <custom1> in the response.
Type: String
transaction.custom2Freeform field. Returned as <custom2> in the response.
Type: String
transaction.custom3Freeform field. Returned as <custom3> in the response.
Type: String
transaction.currencyOne of the following: AUD, CAD, EUR, GBP, JPY, NZD, SGD, USD. This is provider dependant. Please check with MW before attempting to process transactions in any currency other than AUD. This field is case insensitive.
Type: String

JSON#

Modified at 2026-08-04 06:19:01
Previous
getAccessToken
Next
Initiate
Built with