Google Pay: Update the formValidator name

This commit is contained in:
Daniel Dudzic 2024-07-30 10:31:44 +02:00
parent 5ad73cf5f0
commit a301d901dd
No known key found for this signature in database
GPG key ID: 31B40D33E3465483
2 changed files with 2 additions and 2 deletions

View file

@ -4,7 +4,7 @@ import CheckoutActionHandler from '../../../../ppcp-button/resources/js/modules/
import FormValidator from '../../../../ppcp-button/resources/js/modules/Helper/FormValidator';
class CheckoutHandler extends BaseHandler {
formValidator() {
validateForm() {
return new Promise( async ( resolve, reject ) => {
try {
const spinner = new Spinner();

View file

@ -292,7 +292,7 @@ class GooglepayButton {
onButtonClick() {
this.log( 'onButtonClick', this.context );
this.contextHandler.formValidator().then(
this.contextHandler.validateForm().then(
() => {
window.ppcpFundingSource = 'googlepay';