chore/visual-fidelity-fixes #2
1 changed files with 5 additions and 6 deletions
|
|
@ -88,12 +88,11 @@ export default defineEventHandler(async (event) => {
|
|||
member
|
||||
})
|
||||
|
||||
// Paid-tier signups need to complete Helcim checkout in the same tab
|
||||
// before the magic link can be clicked. Issue a short-lived, payment-only
|
||||
// bridge cookie so /api/helcim/initialize-payment accepts the request.
|
||||
if (body.contributionAmount > 0) {
|
||||
// Signup completes (paid checkout or free activation) before the magic
|
||||
// link is clicked, so issue a short-lived, payment-only bridge cookie
|
||||
// that lets /api/helcim/initialize-payment and /api/helcim/subscription
|
||||
// identify the member without a verified auth session.
|
||||
setPaymentBridgeCookie(event, member)
|
||||
}
|
||||
|
||||
return {
|
||||
success: true,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue