Skip to content

Commit

Permalink
Changed references from 'payment request' to 'express checkout'
Browse files Browse the repository at this point in the history
  • Loading branch information
asumaran committed Jul 4, 2024
1 parent 8ebe1ad commit 3298527
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions client/express-checkout/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -415,11 +415,11 @@ jQuery( ( $ ) => {
$.when( wcpayECE.getSelectedProductData() )
.then( ( response ) => {
/**
* If the customer aborted the payment request,
* we need to re init the payment request button to ensure the shipping
* options are refetched. If the customer didn't abort the payment request,
* If the customer aborted the express checkout,
* we need to re init the express checkout button to ensure the shipping
* options are refetched. If the customer didn't abort the express checkout,
* and the product's shipping status is consistent,
* we can simply update the payment request button with the new total and display items.
* we can simply update the express checkout button with the new total and display items.
*/
if (
! wcpayECE.paymentAborted &&
Expand Down Expand Up @@ -593,7 +593,7 @@ jQuery( ( $ ) => {
} );
}

// After initializing a new payment request, we need to reset the paymentAborted flag.
// After initializing a new express checkout button, we need to reset the paymentAborted flag.
wcpayECE.paymentAborted = false;
},
};
Expand Down

0 comments on commit 3298527

Please sign in to comment.