I installed the module and made a simple component:
<script setup lang="ts">
usePaypalButton({
// element: '#paypal-checkout', => default
onApprove: async (data, actions) => {
try {
const details = await actions.order?.capture();
console.log("Payment completed successfully:", details);
} catch (error) {
console.error("Error capturing payment:", error);
}
},
});
</script>
<template>
<div id="paypal-checkout" />
</template>
The buttons load, I click one to test the $0.01 amount, but am asked to log in.
I enter my email address, but then it boots me to a 'create a new account' screen.
To verify that it's not on my end, I opened a new browser window and logged into PayPal directly just fine. The issue only occurs on this module, clicking the PayPal buttons.
Then I see #6 which is an approved PR from August that still isn't merged and an issue from 11 months ago with no comments: #5 and wonder if this is abandoned and I should just use the SDK directly?
I installed the module and made a simple component:
The buttons load, I click one to test the $0.01 amount, but am asked to log in.
I enter my email address, but then it boots me to a 'create a new account' screen.
To verify that it's not on my end, I opened a new browser window and logged into PayPal directly just fine. The issue only occurs on this module, clicking the PayPal buttons.
Then I see #6 which is an approved PR from August that still isn't merged and an issue from 11 months ago with no comments: #5 and wonder if this is abandoned and I should just use the SDK directly?