Totally Zenned
- Join Date:
- Apr 2007
- Location:
- Vancouver, Canada
- Posts:
- 1,567
- Plugin Contributions:
- 58
[Done v1.3.9g] Possible Bug when Transaction IDs start with 0
One of my clients has been receiving transaction IDs that begin with 0 and then are followed by a long string of letters and numbers, typical of a regular PayPal transaction ID.
However, in the WPP function _GetTransactionDetails() it has
if ($txnID == '' || $txnID < 1) return FALSE;
As a result, the admin_notification info is coming up blank. Other than the transaction ID starting with 0, I see no other problems.
Changing it to
if ($txnID == '' || $txnID === 0) return FALSE;
Seems to work. Where 0 is the exact transaction ID returned in sandbox mode.