Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add apple pay for web example #54

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

blackbing
Copy link
Member

No description provided.


throw 'ApplePay is not available';
}
});
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

這樣有 Uncaught Error

Copy link
Member Author

@blackbing blackbing Oct 11, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

line pay 那邊沒有額外對 error 做什麼,catch 僅 log,但這邊沒 catch 會讓應用直接壞掉吧,僅是沒支援就壞掉不太合理

throw 'ApplePay is not available';
}
});
TapPay.webSetupApplePay(merchantData, cartData);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

still run setup if isApplePayAvailable is false?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants