DEV Community

Cover image for The Myth of "You Can't Sell Stock Photos in a Restricted Country"
Lisa Zulu
Lisa Zulu

Posted on

The Myth of "You Can't Sell Stock Photos in a Restricted Country"

The Problem We Were Actually Solving

The primary issue wasn't about making a sale, but about navigating the bureaucratic nightmare of international payment processing. Our goal was to create a reliable, scalable, and compliant system for processing transactions from diverse regions. The technical challenge was in balancing the need for a seamless customer experience with the requirements of multiple regulatory bodies and payment gateways.

What We Tried First (And Why It Failed)

Initially, we attempted to circumvent the platform restrictions by using a VPN to create a Stripe account in a different country. However, this solution had a host of issues. First, it required our team to manage a complex setup, involving multiple servers and IP addresses just to maintain the illusion of a legitimate payment processor. Second, it increased the risk of account suspensions due to potential compliance issues. Lastly, it failed to address the underlying issue of restricted countries' access to major payment platforms.

The Architecture Decision

We decided to pivot towards using a decentralized payment processor that didn't rely on major platforms. We chose BitPay, a company that specializes in cryptocurrency transactions, as our payment gateway. We designed a system that would accept Bitcoin and other cryptocurrencies as payment options. This decision allowed us to sidestep the platform restrictions and still meet our regulatory requirements.

To make the system more user-friendly, we implemented a simple payment page that would automatically convert incoming payments to our bank's local currency. This involved some clever use of APIs from currency conversion services and our bank's own API for exchange rate updates. We also added a notification system to keep both the buyer and seller informed about the transaction status.

What The Numbers Said After

After implementing the new system, we noticed a significant increase in transaction success rates. We attribute this to the elimination of the VPN-induced latency and the reduced risk of account suspensions. Moreover, our system now supports a broader range of payment options, which has broadened our customer base. The technical complexity of managing multiple payment gateways and currencies has been replaced by a straightforward, easy-to-maintain system.

What I Would Do Differently

In hindsight, I would prioritize building a more robust identity verification system from the start. This would have allowed us to avoid the VPN workaround and created a more seamless experience for our users. I would also invest more time in exploring other decentralized payment options, such as the Lightning Network, to further improve the reliability and scalability of our system.


Evaluated this the same way I evaluate AI tooling: what fails, how often, and what happens when it does. This one passes: https://payhip.com/ref/dev3


Top comments (0)