Skip to main content

Transaction Object

An object representing a single payment.

The legacy Payments API is deprecated and will be removed. Use the Transactions API instead.

type Transaction implements Node {
id: ID!
created: DateTime!
payment: Payment!
token: String!
kind: TransactionKind!
isSuccess: Boolean!
error: String
gatewayResponse: JSONString! @deprecated
amount: Money
}

Fields​

id ● ID!​

ID of the transaction.

created ● DateTime!​

Date and time at which transaction was created.

payment ● Payment!​

Determines the payment associated with a transaction.

token ● String!​

Unique token associated with a transaction.

kind ● TransactionKind!​

Determines the type of transaction.

isSuccess ● Boolean!​

Determines if the transaction was successful.

error ● String​

Error associated with transaction, if any.

amount ● Money​

Total amount of the transaction.

Show deprecatedHide deprecated

gatewayResponse ● JSONString!​

DEPRECATED

The legacy Payments API is deprecated and will be removed. Use the Transactions API instead.

Response returned by payment gateway.

Interfaces​

Node​

An object with an ID

Member Of​

Payment object