
I Built One Go Interface for Stripe, Square, PayPal, and Paystack
I noticed every payment provider, promises to make integration and usage simple. They all have the "Just simply call our endpoint" notion. But when I actually start integrating, I realize how different they all were and behind the "Just simply call our endpoint" notion they were all different in their own way (which is not bad but would be a little tedious for me if I were to integrate multiple payment processors). I found out Stripe wants cents, PayPal wants decimal strings, Square won't even allow me do anything without an idempotency key, and Paystack needs my customers to leave my site entirely before any money moves. As a developer I have always had this notion, "Do it incredibly hard the first time, to make it incredibly simple to do any other time". I didn't want to rewrite payment code every time I switched providers. So I built PayBox one Go interface that wraps multiple providers using a single interface. Let me work you through how my mind worked when I was doing this The St
Continue reading on Dev.to Tutorial
Opens in a new tab




