Update class-wc-gateway-paypal.php
modify currency error message to include both sent and returned currencies for comparison
This commit is contained in:
parent
e2be27e7b5
commit
2f5fb72a9c
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue