MyZubster DEV Update — Stripe Seller Checkout & Production Debugging
A productive debugging session on the MyZubster Marketplace today. We focused on the Seller subscription infrastructure, Stripe payments, webhooks, and MongoDB connectivity in production.
We updated the €9.90/month Seller checkout so that Stripe subscription pricing can be created directly through price_data during Checkout Session creation, removing the mandatory dependency on a preconfigured Stripe Price ID.
The fix was isolated in:
fix/seller-checkout-price-data
Commit:
0993bd3 — fix(marketplace): create seller subscription price inline
The Seller Membership test suite passed successfully, and the branch was pushed to the repository.
Stripe integration
We successfully processed a €9.90 Seller payment in the Stripe Sandbox and continued debugging the subscription lifecycle.
The Seller webhook endpoint is now receiving Stripe events correctly:
POST /api/marketplace/seller/webhook → 200 OK
We also configured the Stripe event destination and verified delivery using the Stripe CLI from the correct Sandbox context.
MongoDB + Vercel
Another major issue was discovered in the production MongoDB connection.
We regenerated the credentials for the MongoDB user dedicated to Vercel, rebuilt the Atlas connection string, correctly encoded the password, and tested the connection directly with Mongoose.
Result:
OK MongoDB connected
The verified MONGODB_URI was then deployed to Vercel Production.
Production checks are now succeeding:
GET /api/metaverse/world → 200 OK
GET /api/marketplace/seller/me → 200 OK
POST /api/marketplace/seller/webhook → 200 OK
We also identified intermittent ReplicaSetNoPrimary connection errors between Vercel serverless functions and MongoDB Atlas, which still need monitoring and stabilization.
What's left?
The final step is to verify the real €9.90 Stripe Checkout event against the actual MyZubster Seller membership.
Synthetic events generated by the Stripe CLI now reach the webhook successfully, but they don't necessarily contain the MyZubster-specific user metadata generated by the real Seller checkout.
So the infrastructure is now communicating across the full stack:
MyZubster → Stripe Checkout → Stripe Webhook → Vercel API → MongoDB Atlas
The remaining goal is to complete the final state transition:
Payment confirmed → Seller membership ACTIVE → Marketplace listing enabled
Another important piece of the MyZubster Marketplace infrastructure is coming together. 🛠️
Top comments (0)