Skip to content
Permalink
Browse files Browse the repository at this point in the history
refs #36741
  • Loading branch information
bogdan202 committed Oct 10, 2022
1 parent def742d commit 2f6884e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ipn.php
Expand Up @@ -255,5 +255,5 @@ public function getResult()
}
} elseif (Tools::isSubmit('custom') && (int)Configuration::get('PAYPAL_PAYMENT_METHOD') == HSS) {
$custom = Tools::jsonDecode(Tools::getValue('custom'), true);
Db::getInstance()->insert('paypal_hss_email_error', array('id_cart' => $custom['id_cart'], 'email' => Tools::getValue('receiver_email')));
Db::getInstance()->insert('paypal_hss_email_error', array('id_cart' => (int) $custom['id_cart'], 'email' => pSQL(Tools::getValue('receiver_email', ''))));
}
2 changes: 1 addition & 1 deletion paypal.php
Expand Up @@ -1926,7 +1926,7 @@ private function _postProcess()
}

$new_hss_email = Tools::getValue('api_business_account');
Db::getInstance()->delete('paypal_hss_email_error', 'email = "'.$new_hss_email.'"');
Db::getInstance()->delete('paypal_hss_email_error', 'email = "'. pSQL($new_hss_email) .'"');

Configuration::updateValue('PAYPAL_BUSINESS', (int) Tools::getValue('business'));
Configuration::updateValue('PAYPAL_PAYMENT_METHOD', (int) Tools::getValue('paypal_payment_method'));
Expand Down

0 comments on commit 2f6884e

Please sign in to comment.