Hi, I think having the paypal transaction ID displayed as clickable would come in very handy.
I'm talking about the payment details shown for paypal IPN, example:
*****
Payer Email:
[email protected]
Ebay ID:
Payer ID: ABCDEFG1234567
Payer Status: unverified
Address Status: confirmed
Trans. Type: unique
Trans. ID: 1234567890ABCDEFG
Parent Trans. ID:
*****
I originally intended to ask how to do it, but just before asking I gave it a try and I think I got it right after some trial and error.
I first tried using overrides and editing the file includes/languages/english/modules/payment/paypal.php. That was no good.
After using the developer's tool kit, I thought I might try editing includes/modules/payment/paypal/paypal_admin_notification.php.
I first tried creating an overrides folder so as to not edit the original file directly, but I think overrides don't work here, correct?
So since overrides weren't working, I edited the original file. This is what I changed:
$output .= '<tr><td class="main">'."\n";
$output .= MODULE_PAYMENT_PAYPAL_ENTRY_TXN_ID."\n";
$output .= '</td><td class="main">'."\n";
$output .= $ipn->fields['txn_id']."\n";
$output .= '</td></tr>'."\n";
to:
$output .= '<tr><td class="main">'."\n";
$output .= MODULE_PAYMENT_PAYPAL_ENTRY_TXN_ID."\n";
$output .= '</td><td class="main"><a href=https://www.paypal.com/us/vst/id='."";
$output .= $ipn->fields['txn_id'].' target=_blank>'."\n";
$output .= $ipn->fields['txn_id']."\n";
$output .= '</a></td></tr>'."\n";
This is working perfectly, but since my knowledge is very limited, could someone confirm if this is OK to do and that I didn't mess up anything?
Thanks.
Bookmarks