4 ms·
"If I were you, no matter who you choose to integrate, I'd encapsulate it behind your own payment "service" so that even if you have to switch or you need to ad
by FunnyLookinHat 10y ago
"If I were you, no matter who you choose to integrate, I'd encapsulate it behind your own payment "service" so that even if you have to switch or you need to add more then one (highly recommended), then you can."
This is the best advice in the comments. I've seen my own code and others become overly coupled to a specific provider's terminology, mechanisms, and expectations - leading it to be exceptionally painful when you inevitably have to migrate away to a new provider (or support more than one).
- newton10471 10y agoFor those in the ruby/rails world, there's a gem which does this (make it easy to switch between payment vendors) for you: Active Merchant (http://activemerchant.org/ http://activemerchant.org/).
- maerF0x0 10y agoYeah, but is there a gem for allowing me to switch payment abstraction gems?
- dopamean 10y agoActiveActiveMerchant.
- patrickgordon 10y agoAwesome gem, thanks for that!