Payment method title
-
There is a setting to set a custom title for the payment method displayed at checkout. It reads: “This controls the title which the user sees during checkout.“.
However, this title does not appear at checkout as one would expect. Is this the intended behavior?
When examining the code, it seems the custom title is never actually used anywhere. The plugin saves and loads the title, but it is not used beyond that. For example:
/includes/class-swedbank-pay-payment-gateway-checkout.php, line 338
/**
* Return the gateway's title.
*
* @return string
*/
public function get_title() {
$title = __( 'Swedbank Pay Payment Menu', 'swedbank-pay-woocommerce-checkout' );
return apply_filters( 'woocommerce_gateway_title', $title, $this->id );
}As seen above, a static value for the title is set to “Swedbank Pay Payment Menu”, followed by the filter “woocommerce_gateway_title”. But the filter is never implemented by the plugin.
The topic ‘Payment method title’ is closed to new replies.