TransactionSimulateAuthorizationParams

Simulates an authorization request from the card network as if it came from a merchant acquirer. If you are configured for ASA, simulating authorizations requires your ASA client to be set up properly, i.e. be able to respond to the ASA request with a valid JSON. For users that are not configured for ASA, a daily transaction limit of $5000 USD is applied by default. You can update this limit via the update account endpoint.

Types

Link copied to clipboard
class Body
Link copied to clipboard
Link copied to clipboard
object Companion
Link copied to clipboard
class Status : Enum

Type of event to simulate.

Functions

Link copied to clipboard

Additional headers to send with the request.

Link copied to clipboard

Additional query param to send with the request.

Link copied to clipboard

Returns the raw JSON value of amount.

Link copied to clipboard
Link copied to clipboard

Returns the raw JSON value of descriptor.

Link copied to clipboard
open override fun _headers(): Headers

The full set of headers in the parameters, including both fixed and additional headers.

Link copied to clipboard

Returns the raw JSON value of mcc.

Link copied to clipboard

Returns the raw JSON value of merchantAcceptorId.

Link copied to clipboard

Returns the raw JSON value of merchantAmount.

Link copied to clipboard

Returns the raw JSON value of merchantCurrency.

Link copied to clipboard

Returns the raw JSON value of pan.

Link copied to clipboard

Returns the raw JSON value of partialApprovalCapable.

Link copied to clipboard

Returns the raw JSON value of pin.

Link copied to clipboard
open override fun _queryParams(): QueryParams

The full set of query params in the parameters, including both fixed and additional query params.

Link copied to clipboard
Link copied to clipboard
fun amount(): Long

Amount (in cents) to authorize. For credit authorizations and financial credit authorizations, any value entered will be converted into a negative amount in the simulated transaction. For example, entering 100 in this field will result in a -100 amount in the transaction. For balance inquiries, this field must be set to 0.

Link copied to clipboard

Merchant descriptor.

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
fun mcc(): String?

Merchant category code for the transaction to be simulated. A four-digit number listed in ISO 18245. Supported merchant category codes can be found here.

Link copied to clipboard

Unique identifier to identify the payment card acceptor.

Link copied to clipboard

Amount of the transaction to be simulated in currency specified in merchant_currency, including any acquirer fees.

Link copied to clipboard

3-character alphabetic ISO 4217 currency code. Note: Simulator only accepts USD, GBP, EUR and defaults to GBP if another ISO 4217 code is provided

Link copied to clipboard
fun pan(): String

Sixteen digit card number.

Link copied to clipboard

Set to true if the terminal is capable of partial approval otherwise false. Partial approval is when part of a transaction is approved and another payment must be used for the remainder.

Link copied to clipboard
fun pin(): String?

Simulate entering a PIN. If omitted, PIN check will not be performed.

Link copied to clipboard

Type of event to simulate.

Link copied to clipboard
open override fun toString(): String