Files
torebki-fabiola.pl/wp-content/plugins/woo-payu-payment-gateway/includes/WC_Gateway_PayuCreditCard.php
2026-03-05 13:07:40 +01:00

29 lines
743 B
PHP

<?php
class WC_Gateway_PayuCreditCard extends WC_PayUGateways
{
protected $paytype = 'c';
function __construct()
{
parent::__construct('payucreditcard');
if ($this->is_enabled()) {
$this->show_terms_info = false;
$this->icon = apply_filters('woocommerce_payu_icon', plugins_url( '/assets/images/card-visa-mc.svg', PAYU_PLUGIN_FILE ));
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();
}
}