WooCommerce show payment will be made in following currency

There is allays some shop which work in one currency but the payment need to be accepted in other
If you wanna to do something like this in your WooCommerce eshop you can use following code to display information about the payment currency when payment method is selected

define(‘WEBOPS_EUR_RATE’, ‘1.95583’);

// define the woocommerce_gateway_description callback
function webops_woocommerce_gateway_description( $this_description, $this_id ) {
// make filter magic happen here…
$this_description = $this_description.”
Payment will be made in BGN
1 EUR = 1.95583 BGN
You will pay “.round(WC()->cart->get_total()*WEBOPS_EUR_RATE,2).”BGN”;

return $this_description;

// add the filter
add_filter( ‘woocommerce_gateway_description’, ‘webops_woocommerce_gateway_description’, 10, 2 );