Transactions
Transactions are actions that are made on the order. They might be authenticating the payer or card, reserving payer funds, or moving money between you and the payer. You initiate a transaction in your system by sending an API request to the Mastercard Gateway, which in turn processes the request and sends it forward to a relevant payment method provider or acquirer.
Authorize
Request Parameters
Required Properties for a simple request.
- Name
apiOperation
- Type
- string Required
- Description
- AUTHORIZE
- Name
order
- Type
- object Required
- Description
- Information about the order associated with this transaction.
- Name
sourceOfFunds
- Type
- object Required
- Description
- The details describing the source of the funds to be used.
Response Parameters
Required Properties for a simple request.
- Name
browserPayment
- Type
- object
- Description
- Information used to manage interactions with the payment provider if you are offering your payment page on a website or are redirecting the payer's browser to the provider's website.
- Name
merchant
- Type
- string
- Description
- The unique identifier issued to you by your payment provider.
- Name
order
- Type
- object
- Description
- Information about the order associated with this transaction.
- Name
response
- Type
- object
- Description
- Response
- Name
result
- Type
- enum
- Description
- A system-generated high level overall result of the operation.Enum Options:FAILUREPENDINGSUCCESSUNKNOWN
- Name
transaction
- Type
- object
- Description
- Information about this transaction.
Balance Inquiry
Request Parameters
Required Properties for a simple request.
- Name
order
- Type
- object Required
- Description
- Information about the order associated with this transaction.
- Name
sourceOfFunds
- Type
- object Required
- Description
- Information about the order associated with this transaction.
Response Parameters
Required Properties for a simple request.
- Name
merchant
- Type
- string
- Description
- The unique identifier issued to you by your payment provider.
- Name
order
- Type
- object
- Description
- Information about the order associated with this transaction.
- Name
response
- Type
- object
- Description
- Response
- Name
result
- Type
- enum
- Description
- A system-generated high level overall result of the operation.Enum Options:FAILUREPENDINGSUCCESSUNKNOWN
- Name
sourceOfFunds
- Type
- object
- Description
- The details describing the source of the funds to be used.
Capture
Request Parameters
Required Properties for a simple request.
- Name
apiOperation
- Type
- string Required
- Description
- CAPTURE
- Name
order
- Type
- object Required
- Description
- Information about the order associated with this transaction.
- Name
sourceOfFunds
- Type
- object Required
- Description
- The details describing the source of the funds to be used.
- Name
transaction
- Type
- object Required
- Description
- Information about this transaction.
Response Parameters
Required Properties for a simple request.
- Name
browserPayment
- Type
- object
- Description
- Information used to manage interactions with the payment provider if you are offering your payment page on a website or are redirecting the payer's browser to the provider's website.
- Name
merchant
- Type
- string
- Description
- The unique identifier issued to you by your payment provider.
- Name
order
- Type
- object
- Description
- Information about the order associated with this transaction.
- Name
response
- Type
- object
- Description
- Response
- Name
result
- Type
- enum
- Description
- A system-generated high level overall result of the operation.Enum Options:FAILUREPENDINGSUCCESSUNKNOWN
- Name
transaction
- Type
- object
- Description
- Information about this transaction.
Disbursement
Request Parameters
Required Properties for a simple request.
- Name
apiOperation
- Type
- string Required
- Description
- DISBURSEMENT
- Name
disbursementType
- Type
- enum Required
- Description
- The type of disbursement used for this transaction.Enum Options:CREDIT_CARD_BILL_PAYMENTGAMING_WINNINGS
- Name
order
- Type
- object Required
- Description
- Information about the order associated with this transaction.
- Name
sourceOfFunds
- Type
- object Required
- Description
- The details describing the source of the funds to be used.
Response Parameters
Required Properties for a simple request.
- Name
browserPayment
- Type
- object
- Description
- Information used to manage interactions with the payment provider if you are offering your payment page on a website or are redirecting the payer's browser to the provider's website.
- Name
merchant
- Type
- string
- Description
- The unique identifier issued to you by your payment provider.
- Name
order
- Type
- object
- Description
- Information about the order associated with this transaction.
- Name
response
- Type
- object
- Description
- Response
- Name
result
- Type
- enum
- Description
- A system-generated high level overall result of the operation.Enum Options:FAILUREPENDINGSUCCESSUNKNOWN
- Name
transaction
- Type
- object
- Description
- Information about this transaction.
Pay
Request Parameters
Required Properties for a simple request.
- Name
apiOperation
- Type
- string Required
- Description
- PAY
- Name
order
- Type
- object Required
- Description
- Information about the order associated with this transaction.
- Name
sourceOfFunds
- Type
- object Required
- Description
- The details describing the source of the funds to be used.
- Name
transaction
- Type
- object Required
- Description
- Information about this transaction.
Response Parameters
Required Properties for a simple request.
- Name
browserPayment
- Type
- object
- Description
- Information used to manage interactions with the payment provider if you are offering your payment page on a website or are redirecting the payer's browser to the provider's website.
- Name
merchant
- Type
- string
- Description
- The unique identifier issued to you by your payment provider.
- Name
order
- Type
- object
- Description
- Information about the order associated with this transaction.
- Name
response
- Type
- object
- Description
- Response
- Name
result
- Type
- enum
- Description
- A system-generated high level overall result of the operation.Enum Options:FAILUREPENDINGSUCCESSUNKNOWN
- Name
transaction
- Type
- object
- Description
- Information about this transaction.
Referral
Request Parameters
Required Properties for a simple request.
- Name
apiOperation
- Type
- string Required
- Description
- REFERRAL
- Name
transaction
- Type
- object Required
- Description
- Information about this transaction.
Response Parameters
Required Properties for a simple request.
- Name
browserPayment
- Type
- object
- Description
- Information used to manage interactions with the payment provider if you are offering your payment page on a website or are redirecting the payer's browser to the provider's website.
- Name
merchant
- Type
- string
- Description
- The unique identifier issued to you by your payment provider.
- Name
order
- Type
- object
- Description
- Information about the order associated with this transaction.
- Name
response
- Type
- object
- Description
- Response
- Name
result
- Type
- enum
- Description
- A system-generated high level overall result of the operation.Enum Options:FAILUREPENDINGSUCCESSUNKNOWN
- Name
transaction
- Type
- object
- Description
- Information about this transaction.
Refund
Request Parameters
Required Properties for a simple request.
- Name
apiOperation
- Type
- string Required
- Description
- REFUND
- Name
order
- Type
- object Required
- Description
- Information about the order associated with this transaction.
- Name
transaction
- Type
- object Required
- Description
- Information about this transaction.
Response Parameters
Required Properties for a simple request.
- Name
browserPayment
- Type
- object
- Description
- Information used to manage interactions with the payment provider if you are offering your payment page on a website or are redirecting the payer's browser to the provider's website.
- Name
merchant
- Type
- string
- Description
- The unique identifier issued to you by your payment provider.
- Name
order
- Type
- object
- Description
- Information about the order associated with this transaction.
- Name
response
- Type
- object
- Description
- Response
- Name
result
- Type
- enum
- Description
- A system-generated high level overall result of the operation.Enum Options:FAILUREPENDINGSUCCESSUNKNOWN
- Name
transaction
- Type
- object
- Description
- Information about this transaction.
Retrieve Order
Request Parameters
All the properties that exist for this request.
- Name
correlationId
- Type
- string
- Description
- A transient identifier for the request, that can be used to match the response to the request.
- Name
responseControls
- Type
- object
- Description
- Container for fields that control the response returned for the request.
Response Parameters
Required Properties for a simple request.
- Name
amount
- Type
- double
- Description
- The total amount for the order. This is the net amount plus any merchant charge amounts.If you provide any sub-total amounts, then the sum of these amounts (order.itemAmount, order.taxAmount, order.shippingAndHandlingAmount, order.cashbackAmount, order.gratuityAmount, order.merchantCharge.amount and order.dutyAmount), minus the order.discountAmount must equal the net amount.
- Name
creationTime
- Type
- date
- Description
- Indicates the date and time the gateway considers the order to have been created.
- Name
currency
- Type
- string
- Description
- The currency of the order expressed as an ISO 4217 alpha code, e.g. USD.
- Name
id
- Type
- string
- Description
- A unique identifier for this order to distinguish it from any other order you create.
- Name
lastUpdatedTime
- Type
- date
- Description
- Indicates the date and time the gateway considers the order to have last been updated.
- Name
merchant
- Type
- string
- Description
- The unique identifier issued to you by your payment provider.
- Name
merchantAmount
- Type
- double
- Description
- The total amount for the order in order.merchantCurrency units.
- Name
merchantCurrency
- Type
- string
- Description
- The currency in which you priced your inventory for this order, expressed as an ISO 4217 alpha code, e.g. USD.
- Name
result
- Type
- enum
- Description
- A system-generated high level overall result of the operation.Enum Options:FAILUREPENDINGSUCCESSUNKNOWN
- Name
totalAuthorizedAmount
- Type
- double
- Description
- The amount that has been successfully authorized for this order.
- Name
totalCapturedAmount
- Type
- double
- Description
- The amount that has been successfully captured for this order.
- Name
totalDisbursedAmount
- Type
- double
- Description
- The amount that has been successfully disbursed for this order.
- Name
totalRefundedAmount
- Type
- double
- Description
- The amount that has been successfully refunded for this order.
Retrieve Transaction
Request Parameters
All the properties that exist for this request.
- Name
correlationId
- Type
- string
- Description
- A transient identifier for the request, that can be used to match the response to the request.
- Name
responseControls
- Type
- object
- Description
- Container for fields that control the response returned for the request.
Response Parameters
Required Properties for a simple request.
- Name
browserPayment
- Type
- object
- Description
- Information used to manage interactions with the payment provider if you are offering your payment page on a website or are redirecting the payer's browser to the provider's website.
- Name
merchant
- Type
- string
- Description
- The unique identifier issued to you by your payment provider.
- Name
order
- Type
- object
- Description
- Information about the order associated with this transaction.
- Name
response
- Type
- object
- Description
- Response
- Name
result
- Type
- enum
- Description
- A system-generated high level overall result of the operation.Enum Options:FAILUREPENDINGSUCCESSUNKNOWN
- Name
transaction
- Type
- object
- Description
- Information about this transaction.
Update Authorization
Request Parameters
Required Properties for a simple request.
- Name
apiOperation
- Type
- string Required
- Description
- UPDATE_AUTHORIZATION
- Name
transaction
- Type
- object Required
- Description
- Information about this transaction.
Response Parameters
Required Properties for a simple request.
- Name
browserPayment
- Type
- object
- Description
- Information used to manage interactions with the payment provider if you are offering your payment page on a website or are redirecting the payer's browser to the provider's website.
- Name
merchant
- Type
- string
- Description
- The unique identifier issued to you by your payment provider.
- Name
order
- Type
- object
- Description
- Information about the order associated with this transaction.
- Name
response
- Type
- object
- Description
- Response
- Name
result
- Type
- enum
- Description
- A system-generated high level overall result of the operation.Enum Options:FAILUREPENDINGSUCCESSUNKNOWN
- Name
transaction
- Type
- object
- Description
- Information about this transaction.
Verify
Request Parameters
Required Properties for a simple request.
- Name
apiOperation
- Type
- string Required
- Description
- VERIFY
- Name
order
- Type
- object Required
- Description
- Information about the order associated with this transaction.
- Name
sourceOfFunds
- Type
- object Required
- Description
- The details describing the source of the funds to be used.
- Name
transaction
- Type
- object Required
- Description
- Information about this transaction.
Response Parameters
Required Properties for a simple request.
- Name
browserPayment
- Type
- object
- Description
- Information used to manage interactions with the payment provider if you are offering your payment page on a website or are redirecting the payer's browser to the provider's website.
- Name
merchant
- Type
- string
- Description
- The unique identifier issued to you by your payment provider.
- Name
order
- Type
- object
- Description
- Information about the order associated with this transaction.
- Name
response
- Type
- object
- Description
- Response
- Name
result
- Type
- enum
- Description
- A system-generated high level overall result of the operation.Enum Options:FAILUREPENDINGSUCCESSUNKNOWN
- Name
transaction
- Type
- object
- Description
- Information about this transaction.
Void
Request Parameters
Required Properties for a simple request.
- Name
apiOperation
- Type
- string Required
- Description
- VOID
- Name
transaction
- Type
- object Required
- Description
- Information about this transaction.
Response Parameters
Required Properties for a simple request.
- Name
browserPayment
- Type
- object
- Description
- Information used to manage interactions with the payment provider if you are offering your payment page on a website or are redirecting the payer's browser to the provider's website.
- Name
merchant
- Type
- string
- Description
- The unique identifier issued to you by your payment provider.
- Name
order
- Type
- object
- Description
- Information about the order associated with this transaction.
- Name
response
- Type
- object
- Description
- Response
- Name
result
- Type
- enum
- Description
- A system-generated high level overall result of the operation.Enum Options:FAILUREPENDINGSUCCESSUNKNOWN
- Name
transaction
- Type
- object
- Description
- Information about this transaction.