forked from https://github.com/Shopify/active_merchant