Home / Transactions
Clearing can happen with an authorization or in batches after an authorization is approved. Once a transaction is cleared the money is removed from a particular
spendAccount. To simulate clearing in two steps you can use the
simulateClearing mutation. You're able to capture transactions for amounts under and over the original authorization.
Refunds can be simulated for transactions that are cleared. You can refund any amount up to the full amount of the original transaction. Refunds not linked to a previous transaction cannot yet be simulated. When you call the
simulateRefund mutation you will receive a
ClearingEvent in response. It is not possible to simulate a refund authorization currently.
Simulating a refund results in a new transaction with its own