Skip to content

fix(zer4moo): wire cart to Wix hosted checkout - #23

Open
hanag-wix wants to merge 2 commits into
wix-incubator:masterfrom
hanag-wix:fix/zer4moo-checkout
Open

fix(zer4moo): wire cart to Wix hosted checkout#23
hanag-wix wants to merge 2 commits into
wix-incubator:masterfrom
hanag-wix:fix/zer4moo-checkout

Conversation

@hanag-wix

Copy link
Copy Markdown
Contributor

Summary

  • Adds zer4moo/src/pages/api/checkout.ts — creates a Wix eCommerce checkout from custom line items (bouquet + delivery fee) via auth.elevate, then returns a hosted checkout URL through redirects.createRedirectSession
  • Updates CartAndSend.tsx to POST cart lines to /api/checkout and redirect to Wix payment (fallback to /delivered if checkout creation fails)
  • Adds @wix/ecom and @wix/redirects dependencies
  • Updates root README table to list Wix eCommerce for Zer4moo

Based on hanag-wix/Zer4moo-with-wix-checkout — checkout-only changes; no adapter or unrelated refactors.

Checkout flow

  1. Visitor builds bouquet → localStorage cart
  2. /cart form submit → /api/checkout with line items
  3. Redirect to Wix hosted checkout → thank-you at /delivered

Test plan

  • cd zer4moo && npm install && npm run dev with linked Wix site
  • Add bouquet to cart, fill delivery form, submit → redirects to Wix checkout
  • Complete payment → returns to /delivered
  • Site needs eCommerce app + payment provider configured in Wix Dashboard

hanag-wix and others added 2 commits August 3, 2026 16:20
Add /api/checkout with custom line items and redirect session; cart submit
redirects to hosted payment instead of theatrical /delivered flow.
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