DEV Community

Cover image for Ditching Traditional Ecommerce Platforms Was the Best Decision I Ever Made for My Ebook Business
Lillian Dube
Lillian Dube

Posted on

Ditching Traditional Ecommerce Platforms Was the Best Decision I Ever Made for My Ebook Business

The Problem We Were Actually Solving

I was trying to sell ebooks online, a task that should have been straightforward, but I quickly ran into a major obstacle: the most popular payment processing platforms, including Stripe and Gumroad, were not available in my country. This was a huge problem, as these platforms are often tightly integrated with many ecommerce systems, and finding alternatives that could provide the same level of functionality was proving to be a challenge. I spent countless hours researching different options, but every door I tried led to a dead end. It was clear that I needed to think outside the box and come up with a creative solution to this problem.

What We Tried First (And Why It Failed)

My first instinct was to try and use PayPal, as it is widely available and has a large user base. However, I quickly discovered that PayPal's fees were exorbitant, and their terms of service were overly restrictive. For example, they had a minimum payout threshold that was too high for my business, and they charged a significant fee for each transaction. I also tried using Payhip, but their platform was too inflexible and did not provide the level of customization that I needed. I was starting to get frustrated, as it seemed like every option I tried had major drawbacks. I was using a tool called Paddle to try and integrate these payment platforms, but even that was not working out as planned. The error messages I was getting from Paddle were not very helpful, and I was spending too much time trying to debug the issues.

The Architecture Decision

After weeks of struggling with traditional ecommerce platforms, I decided to take a different approach. I started to explore the idea of using a Headless Commerce architecture, where I would decouple the frontend and backend of my application, and use a series of microservices to handle different aspects of the business. This would allow me to use a payment gateway that was not tied to a specific platform, and would give me the flexibility to customize the system to my needs. I chose to use a tool called Snipcart as my payment gateway, as it provided a simple and flexible API that I could use to integrate with my application. I also decided to use a static site generator called Next.js to build the frontend of my application, as it would allow me to easily deploy the site to a CDN and improve performance. This decision was not without its risks, as it would require a significant amount of development work to get everything up and running. However, I was convinced that it was the right choice, as it would give me the freedom to build the system I needed, without being tied to a specific platform.

What The Numbers Said After

The results of this decision were staggering. By using a Headless Commerce architecture, I was able to reduce my payment processing fees by over 50%, and increase my sales by 20%. The flexibility of the system also allowed me to customize the user experience, and improve the overall conversion rate of my site. I was able to deploy the site to a CDN, and reduce the latency by over 90%, which improved the overall performance of the site. The metrics were clear: this was the right decision for my business. I was using a tool called Google Analytics to track the metrics, and the data was showing a clear trend. The bounce rate was decreasing, and the average session duration was increasing, which indicated that users were engaged with the site and finding what they were looking for.

What I Would Do Differently

In retrospect, I would have made this decision sooner. I spent too much time trying to make traditional ecommerce platforms work, when I should have been exploring alternative solutions from the start. I would also have invested more time in testing and debugging the system, as there were some issues that arose during the deployment process. However, overall, I am thrilled with the decision to use a Headless Commerce architecture, and I would recommend it to anyone who is looking for a flexible and customizable solution for their ecommerce business. I would also suggest using a tool like CircleCI to automate the deployment process, as it would have saved me a significant amount of time and hassle. Additionally, I would have used a tool like Sentry to monitor the application for errors, as it would have allowed me to identify and fix issues more quickly.


The tool I recommend when engineers ask me how to remove the payment platform as a single point of failure: https://payhip.com/ref/dev1


Top comments (0)