ghostguild-org/server/api/helcim
Jennie Robinson Faber 9b79ae6bf4 refactor(auth): rename paymentBridge → signupBridge
After commit 90acc35 issued the cookie for $0 signups too, the "payment"
framing was wrong — there's no payment in a $0 signup. The cookie is
about bridging the gap between signup-form submit and email verify, not
about payment specifically.

Changes:
- setPaymentBridgeCookie  → setSignupBridgeCookie
- getPaymentBridgeMember  → getSignupBridgeMember
- Cookie wire name        payment-bridge → signup-bridge
- JWT scope               payment_bridge → signup_bridge

Touches both /api/helcim/subscription (signup activation) and
/api/helcim/initialize-payment (paid Helcim checkout) which both consume
the cookie. In-flight signup sessions started before this lands will
need to re-submit the form (cookie name mismatch); cutover hasn't
happened yet, so the only impact is local dev sessions.
2026-04-30 15:31:54 +01:00
..
create-plan.post.js refactor(helcim): use helper in unused admin endpoints 2026-04-08 22:11:25 +01:00
customer-code.get.js refactor(helcim): use centralized helper in 5 simple endpoints 2026-04-08 21:44:18 +01:00
customer.post.js refactor(auth): rename paymentBridge → signupBridge 2026-04-30 15:31:54 +01:00
existing-card.get.js refactor(helcim): normalize listHelcimCustomerCards return shape 2026-04-27 19:16:32 +01:00
get-or-create-customer.post.js feat(payments): persist helcimCustomerCode + skip getOrCreateCustomer on card-on-file 2026-04-27 19:16:32 +01:00
initialize-payment.post.js refactor(auth): rename paymentBridge → signupBridge 2026-04-30 15:31:54 +01:00
payment-history.get.js feat(billing): add payment history API route 2026-04-19 16:26:19 +01:00
plans.get.js refactor(helcim): use helper in unused admin endpoints 2026-04-08 22:11:25 +01:00
subscription.get.js fix(account): show payment history + next-charge for paid-then-$0 members 2026-04-20 12:36:18 +01:00
subscription.post.js refactor(auth): rename paymentBridge → signupBridge 2026-04-30 15:31:54 +01:00
subscriptions.get.js refactor(helcim): use helper in unused admin endpoints 2026-04-08 22:11:25 +01:00
update-billing.post.js refactor(helcim): use helper in unused admin endpoints 2026-04-08 22:11:25 +01:00
update-card.post.js refactor(helcim): normalize listHelcimCustomerCards return shape 2026-04-27 19:16:32 +01:00
verify-payment.post.js refactor(helcim): normalize listHelcimCustomerCards return shape 2026-04-27 19:16:32 +01:00