Transaction: Void
- PHP
$result = $gateway->transaction()->void('the_transaction_id');- PHP
if ($result->success) {
// Transaction successfully voided
} else {
print_r($result->errors);
}Arguments
transactionIdrequired, stringThe unique transaction identifier. You can only void transactions that have a of:
- authorized
- submitted_for_settlement
- settlement_pending (only for certain PayPal transactions)