The Problem We Were Actually Solving
In hindsight, I was trying to solve the wrong problem. I was trying to make my payment gateways work in every country, which led to a series of workarounds and compromises. I was using a combination of IP-based geolocation and user-submitted addresses to guess the user's location. This was not only inaccurate but also made my users feel like they were being lied to.
I also spent countless hours researching alternative payment solutions that I could use as a stopgap measure until PayPal or Stripe expanded to my users' countries. The problem was that these solutions were either expensive or had terrible user experiences.
What We Tried First (And Why It Failed)
My first attempt at solving this problem was to use a combination of regional payment gateways and cash-on-delivery options. This worked for a while, but it had its own set of problems. Cash-on-delivery was not scalable, and regional payment gateways had their own set of security issues.
One specific example was when a customer in a country where PayPal was not available tried to use a regional payment gateway, only to be directed to a page that was not translated to their language. This resulted in a 10% increase in bounce rates and a significant decrease in sales.
The Architecture Decision
I realized that the problem wasn't with the payment gateways or the regional solutions but with the fundamental architecture of my e-commerce platform. I decided to use a third-party e-commerce platform as a service, specifically Shopify.
The key decision was to use Shopify's multi-currency and multi-payment support, which allowed me to bypass regional payment gateways and IP-based geolocation altogether. I also set up a webhook to receive payment notifications from PayPal, Stripe, and other supported payment gateways.
This decision was not without its trade-offs. Shopify took a 2% commission on every sale, and the integration with my existing system required significant changes to my database schema and API endpoints. However, it was a much simpler and more scalable solution than trying to build my own payment gateway.
What The Numbers Said After
After switching to Shopify, my sales increased by 30% in the first quarter, and my bounce rate decreased by 20%. My average order value also increased by 15%. The best part was that I didn't have to spend any more time dealing with platform restrictions or workarounds.
What I Would Do Differently
Looking back, I would have made this decision earlier. I would have saved myself months of time and effort trying to solve the wrong problem. I would also have avoided the extra 2% commission that Shopify charges.
However, I would not have changed the decision to switch to Shopify. The benefits far outweighed the costs, and it has allowed me to focus on building a better product and providing a better user experience to my customers.













