- Plugin link: https://wordpress.org/plugins/woocommerce-payu-latam-gateway/
- open woocommerce-gateway-payulatam.php
- find function __construct()
- instead of:1$this->currency = ($this->is_valid_currency()) ? get_woocommerce_currency() : 'USD';
add next code:1234567891011if (class_exists('WOOCS')){global $WOOCS;$curr = strtoupper($WOOCS->storage->get_val('woocs_current_currency'));} else{$curr = get_woocommerce_currency();}$this->currency = ($this->is_valid_currency()) ? $curr : 'USD';
find function is_valid_currency() and replace all code to the next code:12345678910111213141516function is_valid_currency(){if (class_exists('WOOCS')){global $WOOCS;$curr = strtoupper($WOOCS->storage->get_val('woocs_current_currency'));} else{$curr = get_woocommerce_currency();}//+++if (!in_array($curr, apply_filters('woocommerce_payulatam_supported_currencies', array('ARS', 'BRL', 'COP', 'MXN', 'PEN', 'USD'))))return false;return true;}
