Hi @apfelbiss
Apologies for getting back to you just now. I suggest contacting the support team directly for faster support responses, as these requests are monitored more thoroughly.
But regarding the behavior you reported: It is the intended one.
Payments via the PayPal button will create the WooCommerce order with the PayPal gateway’s title, as configured in the Standard Payments tab.
Only when the buyer clicks a different button to initiate the payment will the WooCommerce order display the other funding source’s name.
It may be possible to extend the code, but I’m afraid only by modifying the plugin code directly.
Setting a PayPal-specific funding name without impacting the gateway title would be possible by extending this service with another option for paypal
. So, for example, adding a line like this:
'paypal' => _x( 'PayPal', 'Name of payment method', 'woocommerce-paypal-payments' ),
However, this change alone may result in the funding source PayPal (via PayPal)
to be displayed.
So to remove the (via PayPal)
, you would need to modify this variable to include paypal
in the array:
protected $own_funding_sources = array( 'venmo', 'paylater', 'paypal' );
The team is looking into improving how the payment gateway is presented on the Checkout page and your suggestion to provide a funding source name for the PayPal gateway that can be separately chosen from the title will be considered.
But I hope this information helps!
Kind regards,
Niklas