Transaction
Transaction: Void
- DOTNET
Result<transaction> result = gateway.Transaction.Void("the_transaction_id");
- DOTNET
if (result.IsSuccess()) {
// transaction successfully voided
} else {
foreach (ValidationError error in result.Errors.DeepAll()) {
Console.WriteLine(error.Message);
}
}
Arguments
TransactionId
required, stringThe unique transaction identifier. You can only void transactions that have a of:
- authorized
- submitted_for_settlement
- settlement_pending (only for certain PayPal transactions)