Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle mysql strict typing issue with legacy PayPal IPN insert #1320

Merged
merged 1 commit into from Oct 18, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions docs/changed_files-v1-5-5.html
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
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
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