Woocommerce – Interkassa 2.0 Payment Gateway
This article is about next plugin: Interkassa 2.0 Payment Gateway for WooCommerce
There is no filters and actions exists to connect both plugins. But you can change code a little to make them works together.
- Find function generate_interkassa_form and change code:
if(class_exists('WOOCS')) { global $WOOCS; $aData['ik_cur'] = strtoupper($WOOCS->storage->get_val('woocs_current_currency')); } else { $aData['ik_cur'] = get_woocommerce_currency(); }
- Find function __construct and change code:
if(class_exists('WOOCS')) { global $WOOCS; $aData['ik_cur'] = strtoupper(strtoupper($WOOCS->storage->get_val('woocs_current_currency'));); } else { $aData['ik_cur'] = $_POST['ik_cur']; }
That is all.