MyZubster is a cool example of where marketplace logic gets complicated once real payments enter the picture. How did you handle the tricky payment and category edge cases?
Building MyZubster: When Marketplace Categories Meet Real Payments
2 Comments
@[Andrei] Thanks Andrei! The main thing was to stop treating βa successful paymentβ as equivalent to βthe user owns Pro.β
The tricky case was that Marketplace Seller and Zorgax Pro could have the same β¬9.90 price, so checking the amount or simply finding an active Stripe subscription was not enough.
I separated the logic into three concepts:
PaymentIntent β Purchase β Entitlement
The PaymentIntent tells us whether money is moving, the Purchase records exactly which product was bought, and the Entitlement determines what that purchase unlocks.
That means an active Marketplace Seller subscription can enable Seller features without accidentally enabling Zorgax Pro, even if both products have the same price.
For existing subscriptions, I preferred preserving the real Stripe product/subscription data rather than rewriting metadata to make it fit the new UI.
On the Marketplace side, the main edge case was coverage drift. We now have demos for all 12/12 categories, plus a regression test that compares the supported Marketplace categories with demo coverage. If a new category is introduced without a corresponding demo, the test should fail.
The same entitlement idea also lets us keep Stripe and BTC as separate payment rails while resolving both into the same product-ownership model after verification.
So the general rule became: never infer ownership from the payment amount β resolve it from product identity and verified purchase state.
Please log in to add a comment.
Please log in to comment on this post.
More Posts
- © 2026 Coder Legion
- Feedback / Bug
- Privacy
- About Us
- Contacts
- You Tube
- Tiktok
- Premium Subscription
- Terms of Service
- Early Builders
More From Myzubster
Related Jobs
- Retail Sales Associate Spanish BilingualVerizon Β· Full time Β· Germany
- Spanish Bilingual Appointment Setter Work From HomeInsurance Protection Specialists Β· Full time Β· Puerto Rico
- Bilingual Retail Sales Associate (Spanish) - VerizonVerizon Β· Full time Β· Germany
Commenters (This Week)
Contribute meaningful comments to climb the leaderboard and earn badges!