ActiveUtils extracts commonly used modules and classes extracted from Active Merchant, to be used for other integration libraries.
Connection
- base class for making HTTP requestsCountry
- find countries mapped by name, country codes, and numeric valuesError
- common error classes used throughout the Active projectsPostData
- helper class for managing required fields that are to be POST-edPostsData
- making SSL HTTP requestsRequiresParameters
- helper method to ensure the required parameters are passed inValidateable
- module used for making models validateableNetworkConnectionRetries
- module for retrying network connections when connection errors occurCurrencyCode
- ensure currency codes are ISO, and convert colloquial codes to ISO.
While most of the code in this library was extracted from ActiveMerchant, ActiveMerchant itself doesn't use this library anymore. For PCI compliance reasons, we aim to keep the number of dependencies of ActiveMerchant as low as possible. For this reason, many of these classes and modules are mirrored in ActiveMerchant (e.g. ActiveUtils::Connection
vs. ActiveMerchant::Connection
. When making changes to this library, you may want to mirror those changes in ActiveMerchant.
- This project is MIT licensed.
- Contributions are gladly accepted! See
CONTRIBUTING.md
for more information.