You are here

function commerce_paypal_ipn_delete in Commerce PayPal 7

Same name and namespace in other branches
  1. 7.2 commerce_paypal.module \commerce_paypal_ipn_delete()

Deletes a stored IPN by ID.

Parameters

$id: The ID of the IPN to delete.

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

File

./commerce_paypal.module, line 239
Implements PayPal payment services for use with Drupal Commerce.

Code

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