mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-06 18:16:38 +08:00
Google Pay: Update the formValidator name
This commit is contained in:
parent
5ad73cf5f0
commit
a301d901dd
2 changed files with 2 additions and 2 deletions
|
@ -4,7 +4,7 @@ import CheckoutActionHandler from '../../../../ppcp-button/resources/js/modules/
|
||||||
import FormValidator from '../../../../ppcp-button/resources/js/modules/Helper/FormValidator';
|
import FormValidator from '../../../../ppcp-button/resources/js/modules/Helper/FormValidator';
|
||||||
|
|
||||||
class CheckoutHandler extends BaseHandler {
|
class CheckoutHandler extends BaseHandler {
|
||||||
formValidator() {
|
validateForm() {
|
||||||
return new Promise( async ( resolve, reject ) => {
|
return new Promise( async ( resolve, reject ) => {
|
||||||
try {
|
try {
|
||||||
const spinner = new Spinner();
|
const spinner = new Spinner();
|
||||||
|
|
|
@ -292,7 +292,7 @@ class GooglepayButton {
|
||||||
onButtonClick() {
|
onButtonClick() {
|
||||||
this.log( 'onButtonClick', this.context );
|
this.log( 'onButtonClick', this.context );
|
||||||
|
|
||||||
this.contextHandler.formValidator().then(
|
this.contextHandler.validateForm().then(
|
||||||
() => {
|
() => {
|
||||||
window.ppcpFundingSource = 'googlepay';
|
window.ppcpFundingSource = 'googlepay';
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue