function commerce_payment_transaction_delete in Commerce Core 7
Deletes a payment transaction by ID.
Parameters
$transaction_id: The ID of the transaction to delete.
Return value
TRUE on success, FALSE otherwise.
2 calls to commerce_payment_transaction_delete()
- commerce_payment_commerce_order_delete in modules/
payment/ commerce_payment.module - Implements hook_commerce_order_delete().
- commerce_payment_payment_transaction_delete_form_submit in modules/
payment/ includes/ commerce_payment.forms.inc - Submit callback for commerce_payment_transaction_delete_form().
File
- modules/
payment/ commerce_payment.module, line 929 - Defines the payment system and checkout integration.
Code
function commerce_payment_transaction_delete($transaction_id) {
return commerce_payment_transaction_delete_multiple(array(
$transaction_id,
));
}