Show "Venmo" instead of "PayPal" when using its' button

This commit is contained in:
Alex P 2021-12-09 17:29:48 +02:00
parent cf5d1ec21f
commit f4a32a01e7
8 changed files with 155 additions and 161 deletions

View file

@ -241,6 +241,12 @@ class PayPalGateway extends \WC_Payment_Gateway {
$this->description = $this->config->has( 'description' ) ?
$this->config->get( 'description' ) : $this->method_description;
$funding_source = $this->session_handler->funding_source();
if ( 'venmo' === $funding_source ) {
$this->title = 'Venmo';
$this->description = __( 'Pay via Venmo.', 'woocommerce-paypal-payments' );
}
$this->init_form_fields();
$this->init_settings();