Files
carpseeds.pl/wp-content/plugins/woocommerce-gateway-paypal-express-checkout/includes/class-wc-gateway-ppec-with-paypal-credit.php
2024-07-15 11:28:08 +02:00

22 lines
547 B
PHP

<?php
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly
}
class WC_Gateway_PPEC_With_PayPal_Credit extends WC_Gateway_PPEC_With_PayPal {
public function __construct() {
$this->icon = 'https://www.paypalobjects.com/webstatic/en_US/i/buttons/ppc-acceptance-small.png';
parent::__construct();
if ( ! is_admin() ) {
if ( wc_gateway_ppec()->checkout->is_started_from_checkout_page() ) {
$this->title = __( 'PayPal Credit', 'woocommerce-gateway-paypal-express-checkout' );;
}
}
$this->use_ppc = true;
}
}