Digital Products & AI Tools Platform
Live in production
A storefront for digital subscriptions with its own payment flow, SMS and email automation, and a set of free AI tools that bring buyers in.
Highlights
- Guest checkout, with the account created after payment clears.
- Payment webhook that is safe to receive twice.
- Scheduled SMS before a subscription runs out.
- Free AI tools that bring in buyers before they buy.
The problem
Selling digital subscriptions in Bangladesh means orders arrive through chat, payments arrive through a gateway that talks back over webhooks, and delivery happens by hand. Nothing ties those three together. An order can be paid and never delivered, a customer can pay twice for the same thing, and a subscription can run out without anyone noticing until the customer complains.
What I built
I built a storefront where the order is the single record everything else hangs off. A buyer checks out as a guest, the payment gateway redirects them back, and the webhook moves the order from pending to completed and creates their account. Admins fulfil from one dashboard, and a scheduled job watches for subscriptions nearing their end and sends an SMS before they lapse. Alongside the paid products the site runs free AI tools — Bangla text-to-speech, image generation, prompt extraction from an image — which bring people in before they buy anything.
Challenges
A payment webhook can arrive more than once
Payment gateways retry when they do not get a clean response, so the same success callback can land two or three times. Handled naively that means two accounts, two confirmation emails and two SMS for one payment. The order's own status is the guard: the handler only acts on an order still marked pending, and anything else returns a success straight away so the gateway stops retrying. The money is the source of truth, not the number of times the gateway called.
Asking people to register before they pay loses the sale
A signup form in front of a checkout is where buyers leave, but orders still need to belong to someone afterwards. So checkout takes a name, email and phone and nothing else, and the account is created when the payment clears. If that email already exists the order attaches to it instead of making a second account, so a returning customer keeps one history rather than collecting duplicates.
Subscriptions end quietly
A monthly or yearly plan simply stops working, and the customer blames the seller rather than the calendar. A scheduled job walks completed orders, works out how far through the term each one is, and sends an SMS before the end. It runs on a schedule rather than on a trigger because expiry is a date passing, not an event anything sends.
Everything after the payment can fail on its own
Once money has moved, the order has to be marked paid even if the confirmation email bounces or the SMS gateway is down. So the order update happens first, and each notification afterwards sits in its own try/catch and logs rather than throws. A failed email is something an admin can resend; a lost order is not something anyone can recover.
Outcome
In production, handling checkout, payment confirmation, fulfilment and renewal reminders without manual tracking. The free AI tools give the site a reason to be visited by people who are not ready to buy yet, which is where most of its traffic starts.