Update class-wc-gateway-paypal.php

modify currency error message to include both sent and returned currencies for comparison
This commit is contained in:
Andrew Benbow 2014-03-10 23:23:30 +00:00
parent e2be27e7b5
commit 2f5fb72a9c
1 changed files with 1 additions and 1 deletions

View File

@ -694,7 +694,7 @@ class WC_Gateway_Paypal extends WC_Payment_Gateway {
// Validate currency
if ( $order->get_order_currency() != $posted['mc_currency'] ) {
if ( 'yes' == $this->debug ) {
$this->log->add( 'paypal', 'Payment error: Currencies do not match (code ' . $posted['mc_currency'] . ')' );
$this->log->add( 'paypal', 'Payment error: Currencies do not match (sent "' . $order->get_order_currency() . '" | returned "' . $posted['mc_currency'] . '")' );
}
// Put this order on-hold for manual checking