Skip to main content
Version: 3.x

Transaction

An object representing a single payment.

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

Fields

Transaction.id ● ID! non-null scalar

ID of the transaction.

Transaction.created ● DateTime! non-null scalar

Date and time at which transaction was created.

Transaction.payment ● Payment! non-null object

Determines the payment associated with a transaction.

Transaction.token ● String! non-null scalar

Unique token associated with a transaction.

Transaction.kind ● TransactionKind! non-null enum

Determines the type of transaction.

Transaction.isSuccess ● Boolean! non-null scalar

Determines if the transaction was successful.

Transaction.error ● String scalar

Error associated with transaction, if any.

Transaction.gatewayResponse ● JSONString! non-null scalar

Response returned by payment gateway.

Transaction.amount ● Money object

Total amount of the transaction.

Interfaces

Node interface

An object with an ID

Member of

Payment object


Was this page helpful?