Add GooglePay button language/locale

This commit is contained in:
Pedro Silva 2023-09-12 18:09:58 +01:00
parent e8b21ed044
commit c3e5d21e75
No known key found for this signature in database
GPG key ID: E2EE20C0669D24B3
4 changed files with 63 additions and 2 deletions

View file

@ -149,6 +149,7 @@ class GooglepayButton {
allowedPaymentMethods: [baseCardPaymentMethod],
buttonColor: buttonStyle.color || 'black',
buttonType: buttonStyle.type || 'pay',
buttonLocale: buttonStyle.language || 'en',
buttonSizeMode: 'fill',
});
jQuery(wrapper).append(button);