Skip to content

Commit

Permalink
Testing apple pay
Browse files Browse the repository at this point in the history
  • Loading branch information
Petrisor Frincu committed Aug 28, 2024
1 parent d5e926c commit 2e6f7a8
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion apps/web/components/PayPal/ApplePayButton.vue
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,11 @@ onMounted(async () => {
const applePayButton = document.querySelector('#btn-appl');
if (applePayButton) {
applePayButton.addEventListener('click', async () => {
emit('button-clicked', applePayPayment());
emit('button-clicked', (result: boolean) => {
if (result) {
applePayPayment();
}
});
});
}
}
Expand Down

0 comments on commit 2e6f7a8

Please sign in to comment.