Skip to content

Commit

Permalink
Handle mysql strict typing issue with legacy PayPal IPN insert (#1320)
Browse files Browse the repository at this point in the history
  • Loading branch information
drbyte committed May 10, 2017
1 parent 13d8a8e commit 5744384
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions docs/changed_files-v1-5-5.html
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ <h1 class="intro center">Version 1.5.5b (changes since v1.5.5a)</h1>
<li>/includes/modules/payment/authorizenet_echeck.php</li>
<li>/includes/modules/payment/payeezyjszc.php</li>
<li>/includes/modules/payment/paypalwpp.php</li>
<li>/includes/modules/payment/paypal/paypal_functions.php</li>
<li>/includes/modules/checkout_process.php</li>
<li>/includes/templates/responsive_classic/jscript/jscript_responsive_framework.php</li>
<li>/includes/templates/responsive_classic/common/html_header.php</li>
Expand Down
1 change: 1 addition & 0 deletions docs/whatsnew_1.5.5.html
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,7 @@ <h3>Since the release of v1.5.5a on 5-May-2016, the following changes have been
<li>Multilanguage: make hreflang tag appear for all languages, instead of only for "other than current" language</li>
<li>Fix admin link to whois resource</li>
<li>Fix checkout_shipping: No method chosen after cart goes from virtual to mixed</li>
<li>Handle mysql strict typing issue with legacy PayPal IPN insert</li>
</ul>

<h1>v1.5.5a vs v1.5.5</h1>
Expand Down
2 changes: 1 addition & 1 deletion includes/modules/payment/paypal/paypal_functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -650,7 +650,7 @@ function ipn_update_orders_status_and_history($ordersID, $new_status = 1, $txn_t
'orders_status_id' => (int)$new_status,
'date_added' => 'now()',
'comments' => 'PayPal status: ' . $_POST['payment_status'] . ' ' . ' @ ' . $_POST['payment_date'] . (($_POST['parent_txn_id'] !='') ? "\n" . ' Parent Trans ID:' . $_POST['parent_txn_id'] : '') . "\n" . ' Trans ID:' . $_POST['txn_id'] . "\n" . ' Amount: ' . $_POST['mc_gross'] . ' ' . $_POST['mc_currency'],
'customer_notified' => false
'customer_notified' => (int)false,
);
zen_db_perform(TABLE_ORDERS_STATUS_HISTORY, $sql_data_array);
ipn_debug_email('IPN NOTICE :: Update complete.');
Expand Down

0 comments on commit 5744384

Please sign in to comment.