Hi Anyone knows how to change Pay button on checkout based on chosen payment method? I found something but I don't know if I could turn it into a snippet in function.php? Thank you.
public function __construct() {
$this->id = 'ry_ecpay_atm';
$this->has_fields = false;
$this->order_button_text = __('Pay via ATM', RY_WT::$textdomain);
$this->method_title = __('ECPay ATM', RY_WT::$textdomain);
$this->method_description = '';
Run Code Online (Sandbox Code Playgroud)