PluginProbe
PayPlug for WooCommerce (Official) / 3.1.0
PayPlug for WooCommerce (Official) v3.1.0
3.1.0 3.0.0 2.18.0 1.0.17 1.0.18 1.0.19 1.0.20 1.0.21 1.0.22 1.0.3 1.0.4 1.0.5 1.0.6 1.0.7 1.0.8 1.1.0 1.10.0 1.10.1 1.2.1 1.2.10 1.2.11 1.2.2 1.2.3 1.2.4 1.2.5 All 102 releases
← All changes | src/PayplugWoocommerce.php +2 -31 3.0.0 → 3.1.0 View file →
@@ -11,9 +11,9 @@
11 11 use Payplug\PayplugWoocommerce\Admin\Metabox;
12 12 use Payplug\PayplugWoocommerce\Admin\Notices;
13 13 use Payplug\PayplugWoocommerce\Admin\SetupCallback;
14 14 use Payplug\PayplugWoocommerce\Admin\WoocommerceActions;
15 -use Payplug\PayplugWoocommerce\Front\PayplugOney\Requests\OneyAnimation;
15 +use Payplug\PayplugWoocommerce\Front\Oney\OneyDisplay;
16 16 use Payplug\PayplugWoocommerce\Gateway\Blocks\PayplugAmex;
17 17 use Payplug\PayplugWoocommerce\Gateway\Blocks\PayplugApplePay;
18 18 use Payplug\PayplugWoocommerce\Gateway\Blocks\PayplugBancontact;
19 19 use Payplug\PayplugWoocommerce\Gateway\Blocks\PayplugBizum;
@@ -198,38 +198,9 @@
198 198 }
199 199
200 200 public function animationHandlers(): void
201 201 {
202 - $options = get_option('woocommerce_payplug_settings', []);
203 -
204 - //if live and don't have country setted on the option
205 - if (!isset($options['company_iso'])) {
206 - $options['company_iso'] = PayplugWoocommerceHelper::UpdateCountryOption($options);
207 - }
208 -
209 - //failsafe
210 - if (empty($options['company_iso']) || !isset($options['payment_methods']['configuration']['oney']['with_fees'])) {
211 - return;
212 - }
213 -
214 - if (!class_exists('\\Payplug\\PayplugWoocommerce\\Front\\PayplugOney\\Country\\Oney' . $options['company_iso'])) {
215 - return;
216 - }
217 -
218 - $oney_type = $options['payment_methods']['configuration']['oney']['with_fees']
219 - ? 'with_fees'
220 - : 'without_fees';
221 -
222 - switch ($oney_type) {
223 - case 'without_fees' :
224 - $class = 'PayplugGatewayOney3xWithoutFees';
225 - break;
226 - default:
227 - $class = 'PayplugGatewayOney3x';
228 - break;
229 - }
230 -
231 - new OneyAnimation($oney_type, $class);
202 + new OneyDisplay();
232 203 }
233 204
234 205 /**
235 206 * Registers WooCommerce Blocks integration.