qrpfwc_m-pesa protected $providerName = 'M-Pesa'; // Secondary verifier: mobile wallet phone last 4. protected $payerFieldType = 'phone_last4'; public function __construct() { parent::__construct(); // Logo beside method title $this->icon = AQRPFW_ASSETS . 'img/mpesa.png'; // Fallback title if settings not saved yet if ( empty( $this->title ) ) { /* translators: %s: Payment provider name (M-Pesa) */ $this->title = sprintf( /* translators: %s: Payment provider name (e.g., M-Pesa) */ _x( '%s QR Pay', 'Payment method title format', 'all-qr-pay-for-woocommerce' ), $this->providerName ); } // Default description fallback if ( empty( $this->description ) || $this->description === __( 'Scan QR and provide transaction details.', 'all-qr-pay-for-woocommerce' ) ) { $this->description = __( 'Scan the M-Pesa QR and enter the M-Pesa Transaction/Reference after payment.', 'all-qr-pay-for-woocommerce' ); } } }