function commerce_paypal_payment_transaction_load in Commerce PayPal 7.2
Loads the payment transaction matching the PayPal transaction ID.
Parameters
$txn_id: The PayPal transaction ID to search for in the remote_id field.
Return value
The loaded payment transaction.
1 call to commerce_paypal_payment_transaction_load()
- commerce_paypal_ec_paypal_ipn_process in modules/
ec/ commerce_paypal_ec.module - Payment method callback: process an IPN once it's been validated.
File
- ./
commerce_paypal.module, line 445 - Implements PayPal payment services for use with Drupal Commerce.
Code
function commerce_paypal_payment_transaction_load($txn_id) {
$transactions = commerce_payment_transaction_load_multiple(array(), array(
'remote_id' => $txn_id,
));
return $transactions ? reset($transactions) : FALSE;
}