transactionInitialize
Initializes a transaction session. It triggers the webhook TRANSACTION_INITIALIZE_SESSION
, to the requested paymentGateways
.
This API is currently in Feature Preview and can be subject to changes at later point.
transactionInitialize(
action: TransactionFlowStrategyEnum
amount: PositiveDecimal
id: ID!
paymentGateway: PaymentGatewayToInitialize!
): TransactionInitialize
Arguments
transactionInitialize.action
● TransactionFlowStrategyEnum
enum
The expected action called for the transaction. By default, the
channel.defaultTransactionFlowStrategy
will be used. The field can be used only by app that hasHANDLE_PAYMENTS
permission.
transactionInitialize.amount
● PositiveDecimal
scalar
The amount requested for initializing the payment gateway. If not provided, the difference between checkout.total - transactions that are already processed will be send.
transactionInitialize.id
● ID!
non-null scalar
The ID of the checkout or order.
transactionInitialize.paymentGateway
● PaymentGatewayToInitialize!
non-null input
Payment gateway used to initialize the transaction.
Type
TransactionInitialize
object
Initializes a transaction session. It triggers the webhook
Added in Saleor 3.13TRANSACTION_INITIALIZE_SESSION
, to the requestedpaymentGateways
.This API is currently in Feature Preview and can be subject to changes at later point.
Was this page helpful?