You appear to be a bot. Output may be restricted
Description
Given a Payment ID, extract the transaction ID
Usage
$string = edd_paypal_get_payment_transaction_id( $payment_id );
Parameters
- $payment_id
- ( string ) required – Payment ID
Returns
string Transaction ID
Source
File name: easy-digital-downloads/includes/gateways/paypal-standard.php
Lines:
1 to 14 of 14
function edd_paypal_get_payment_transaction_id( $payment_id ) { $transaction_id = ''; $notes = edd_get_payment_notes( $payment_id ); foreach ( $notes as $note ) { if ( preg_match( '/^PayPal Transaction ID: ([^\s]+)/', $note->comment_content, $match ) ) { $transaction_id = $match[1]; continue; } } return apply_filters( 'edd_paypal_set_payment_transaction_id', $transaction_id, $payment_id ); }