| @@ -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. |