You are here

function commerce_worldpay_bg_txn_delete in Commerce Worldpay 7

Deletes a stored WPPR by ID.

Parameters

$id: The ID of the WPPR to delete.

$type: The type of ID you've specified, either the serial numeric txn_id or the actual PayPal txn_id. Defaults to txn_id.

File

./commerce_worldpay_bg.module, line 1046
Provides a Worldpay Business Gateway payment method for Drupal Commerce.

Code

function commerce_worldpay_bg_txn_delete($id, $type = 'txn_id') {
  db_delete('commerce_worldpay_bg_txn')
    ->condition($type, $id)
    ->execute();
}