mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-04 08:47:23 +08:00
ApplePay Vaulting Integration
This commit is contained in:
parent
827bd2568d
commit
96b83c9d0d
7 changed files with 86 additions and 12 deletions
|
@ -209,11 +209,15 @@ class ApplepayButton {
|
|||
/**
|
||||
* Show Apple Pay payment sheet when Apple Pay payment button is clicked
|
||||
*/
|
||||
async onButtonClick() {
|
||||
async onButtonClick(data, actions) {
|
||||
console.log('data, actions', data, actions);
|
||||
|
||||
this.log('onButtonClick', this.context);
|
||||
|
||||
const paymentRequest = this.paymentRequest();
|
||||
|
||||
window.ppcpFundingSource = 'apple_pay'; // Do this on another place like on create order endpoint handler.
|
||||
|
||||
// Trigger woocommerce validation if we are in the checkout page.
|
||||
if (this.context === 'checkout') {
|
||||
const checkoutFormSelector = 'form.woocommerce-checkout';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue