function commerce_paypal_ipn_load in Commerce PayPal 7.2
Same name and namespace in other branches
- 7 commerce_paypal.module \commerce_paypal_ipn_load()
Loads a stored IPN by ID.
Parameters
$id: The ID of the IPN to load.
$type: The type of ID you've specified, either the serial numeric ipn_id or the actual PayPal txn_id. Defaults to txn_id.
Return value
The original IPN with some meta data related to local processing.
3 calls to commerce_paypal_ipn_load()
- commerce_paypal_ipn_save in ./
commerce_paypal.module - Saves an IPN with some meta data related to local processing.
- commerce_paypal_process_ipn in ./
commerce_paypal.module - Processes an incoming IPN.
- commerce_paypal_wps_paypal_ipn_process in modules/
wps/ commerce_paypal_wps.module - Payment method callback: process an IPN once it's been validated.
File
- ./
commerce_paypal.module, line 223 - Implements PayPal payment services for use with Drupal Commerce.
Code
function commerce_paypal_ipn_load($id, $type = 'txn_id') {
return db_select('commerce_paypal_ipn', 'cpi')
->fields('cpi')
->condition('cpi.' . $type, $id)
->execute()
->fetchAssoc();
}