first commit

This commit is contained in:
2024-11-10 21:08:49 +01:00
commit 0d932ce5ee
14455 changed files with 2567501 additions and 0 deletions

View File

@@ -0,0 +1,25 @@
<?php
class WC_Gateway_PayuInstallments extends WC_PayUGateways
{
protected $paytype = 'ai';
function __construct()
{
parent::__construct('payuinstallments');
if ($this->is_enabled()) {
if (!is_admin()) {
if (!$this->try_retrieve_banks()) {
add_filter('woocommerce_available_payment_gateways', [$this, 'unset_gateway']);
}
}
}
}
public function payment_fields()
{
parent::payment_fields();
$this->agreements_field();
}
}