stymiee/authnetjson
Library that abstracts Authorize.Net's JSON APIs. This includes the Advanced Integration Method (AIM), Automated Recurring Billing (ARB), Customer Information Manager (CIM), Transaction Reporting, Simple Integration Method (SIM), and Webhooks.
4.3.0
654K downloads/mo
#4724 most downloaded on Packagist
stymiee/authnetjson
What this package is like to depend on
Last release 3 months ago
21 May 2026
Ships unpredictably
gaps range from 3 weeks to 3.3 years
Nearly every release is documented
notes for 36 of 37 stable releases
Nothing withdrawn
no release was ever pulled
11 years old
38 releases · first in 2015
1 release in the last 12 months
see the full history below
Release timeline
38 releases · Mar 2015 to May 2026Releases
latest 38-
4.3.021 May 2026Release notes
Open source →Added
isHeld()method toAuthnetJsonResponseto easily get the status of held transactions.isTransactionError()method toAuthnetJsonResponseto easily get the status of transactions that encountered an error.isPayPalNeedConsent()method toAuthnetJsonResponseto easily get the status of PayPal transactions requiring consent.
Changed
- Reformatted
CHANGELOGto follow Keep a Changelog 1.1.0 format, including proper headers, sections, and improved formatting. - Updated
.editorconfigto be more explicit for certain file types, including PSR-12 for PHP.
Release notes
Open source →Added
isHeld()method to AuthnetJsonResponse to easily get the status of held transactions.
Changed
- Reformatted CHANGELOG to follow Keep a Changelog 1.1.0 format
- Added proper header with links to Keep a Changelog and Semantic Versioning
- Added [Unreleased] section for future changes
- Organized changes into clear sections (Added, Changed, Fixed, etc.)
- Improved formatting and consistency of entries
- Added proper punctuation and made descriptions more concise
- Grouped related changes together
- Maintained chronological order from newest to oldest
- Updated
.editorconfigto be more explicit for certain file types, including PSR-12 for PHP.
-
4.2.013 Feb 2023Release notes
Open source →Added __set() and __isset() magic methods to JSON handling classes. Throws an exception if you try to set values in response objects. Small bug fixes.
Release notes
Open source →Added
- __set() and __isset() magic methods to JSON handling classes. Throws an exception if you try to set values in response objects.
Fixed
- Minor bug in debugging code for webhooks.
- Grammatical errors in comments.
- Bug in getting webhook events.
Changed
- Cleaned up examples a bit more.
-
4.1.419 Dec 2020 -
4.1.331 Aug 2020 -
4.1.228 Aug 2020Release notes
Open source →Bug fixes (see CHANGELOG), updated namespacing to be PSR-0/4 compliant, improved examples to show how more data is accessed
Release notes
Open source →Added
- Ability to get results from multiple payment results as may be possible when creating multiple payment profiles.
Fixed
- Potential bug where getting a transaction response would fail and cause transactions appear to not be approved.
Changed
- Updated namespacing to be PSR-0/4 compliant.
- Improved example to show how more data is accessed.
- Cleaned up unit tests a bit.
- Minor code clean up.
-
4.1.122 Jun 2020Release notes
Open source →Fixed HTTP headers being incorrect and causing isValid() to incorrectly fail (thank you ericnicolaas). Added examples for ARBGetSubscriptionListRequest, ARBGetSubscriptionRequest, ARBCreateSubscriptionRequest (from Profile). Removed unnecessary proxy code in Exception classes.
Release notes
Open source →Added
- Examples for ARBGetSubscriptionListRequest, ARBGetSubscriptionRequest, ARBCreateSubscriptionRequest (from Profile).
Fixed
- HTTP headers being incorrect and causing isValid() to incorrectly fail.
Removed
- Unnecessary proxy code in Exception classes.
-
4.1.029 May 2020Release notes
Open source →Added
- Support for Accept.js and Accept Hosted APIs.
- SECURITY.md to project.
Changed
- Cleaned up the examples even more.
- Minor code clean up.
-
4.0.008 May 2020Release notes
Open source →PHP 7.2+ release. Lots of code clean up as a result of functionality made available with newer versions of PHP.
Release notes
Open source →Changed
- Changed name of Akamai endpoint to be more generic and accurate (CDN); includes tests.
- Minor fixes for examples.
- Changed config.inc.php to throw RuntimeException.
- Master branch will now support PHP 7.2+. PHP 5.6+ has been moved to its own branch.
-
4.0.0-beta08 Mar 2020 pre-releaseRelease notes
Open source →Added
- AuthnetJson::BOUNDLESS_OCCURRENCES to indicate an endless subscription.
- Support for prepaid cards.
- Constructor to Authnet exceptions.
- CONTRIBUTING.md.
- Shiny badges for the README.
Changed
- Bumped minimum supported version of PHP to 7.2.
- If trying to retrieve non-existent response value, NULL is returned in AuthnetJsonResponse::__get().
- Updated unit tests for phpunit 8.
- Removed unneeded require of config file in unit tests.
- Added phpunit to require-dev.
- Cleaned up HTML and CSS in examples.
- Minor formatting changes.
Removed
- Unused AuthnetInvalidParameterException class.
-
3.2.016 Feb 2023Release notes
Open source →Catches the PHP 5.6 branch of this package up to date with the master branch while maintaining PHP 5.6 compatibility.
-
3.1.1018 Jun 2020Release notes
Open source →Fixed HTTP headers being incorrect and causing isValid() to incorrectly fail (thank you ericnicolaas).
-
3.1.904 Jun 2019Release notes
Open source →Changed
- Returned better error message when creating Webhook.
- Removed unnecessary suppression operators by checking if a variable is set in the __get() magic method.
-
3.1.827 Jan 2019Release notes
Open source →Changed
- Removed not actually missing return statement to AuthnetWebhooksRequest::delete.
- Reduced complexity of AuthnetApiFactory::getWebServiceURL().
- Reduced complexity of AuthnetWebhooksResponse::getEventTypes().
- Reduced complexity of AuthnetWebhook::getAllHeaders().
-
3.1.723 Jan 2019Release notes
Open source →Added
- Missing return statement to AuthnetWebhooksRequest::delete.
- ext-curl and ext-json to composer.json as dependencies.
Fixed
- Incorrect and/or incomplete docblock comments.
Changed
- Minor formatting changes.
-
3.1.622 Jan 2019Release notes
Open source →Added
- FILTER_FLAG_ALLOW_THOUSAND when validating amount for SIM fingerprint.
- Requirements section to README.md.
- Notice about AuthnetJSON 4.0 PHP compatibility level changing.
Changed
- Changed SIM algorithm to SHA512.
- Used sprintf() for string formatting with variables.
- Minor formatting changes.
-
3.1.502 Jan 2019Release notes
Open source →Added
- Examples/cim/createCustomerProfileRequestMultiplePayAccounts.php to demonstrate adding multiple payment accounts.
- HELP.md file.
- Unit test for AuthnetWebhook::getAllHeaders().
Changed
- Updated all usage of array() to [].
- Updated unit tests for PHPUnit 7.
- Updated AuthnetWebhook::__constructor() to use AuthnetWebhook::getAllHeaders() instead of going straight to apache_get_headers().
- Converted tabs to spaces!
-
3.1.422 Jan 2018Release notes
Open source →Fixed
- Really fixed case sensitivity issue with HTTP header in Webhook.
Changed
- Updated expiration dates in AIM examples.
-
3.1.328 Dec 2017 -
3.1.206 Sep 2017 -
3.1.130 Aug 2017Release notes
Open source →Added
- Made providing headers when handling a webhook optional if apache_request_headers()/getallheaders() is available.
Changed
- Throws an exception when no signature is provided.
-
3.1.029 Aug 2017Release notes
Open source →Added
- Signature verification when receiving a webhook.
Changed
- Show N/A when there is no request JSON when printing out response objects.
- Got unit test coverage back to 100%.
-
3.0.020 Mar 2017Release notes
Open source →Added
- Support for webhooks.
Changed
- Switched to use \Curl\Curl for all Curl requests.
- Updated examples to use recent dates.
- Cleaned up and improved some unit tests.
- Converted some errant tabs to spaces.
- Removed BETA notice from README.
-
2.5.109 Jun 2016 -
2.5.011 Sep 2015Release notes
Open source →Added
- AuthnetJsonResponse::getRawRequest to get raw JSON request sent to Authorize.Net.
- AuthnetJsonResponse::getRawResponse to get raw JSON response returned from Authorize.Net.
- getError(), getErrorCode(), and getErrorMessage() for easier error handling and logging.
- Support for the SIM API.
Changed
- Exceptions extend AuthnetJson exception to allow for better error handling in client code.
-
2.4.527 Aug 2015 -
2.4.426 Aug 2015 -
2.4.322 Aug 2015Release notes
Open source →Changed
- Updated docblock comments and added phpdoc.xml to allow for better and easier to generate documentation.
-
2.4.217 Aug 2015 -
2.4.114 Aug 2015Release notes
Open source →Fixed
- Potential bug in AuthnetJsonResponse::checkTransactionStatus().
- Got unit test coverage back to 100%.
-
2.4.009 Aug 2015 -
2.3.016 Jul 2015Release notes
Open source →Changed
- Updated AuthnetJsonResponse::isApproved and AuthnetJsonResponse::isDeclined to work with AIM transactions.
- Got unit test coverage to 100%.
-
2.2.030 May 2015Release notes
Open source →Added
- AuthnetJsonResponse::isApproved and AuthnetJsonResponse::isDeclined to easily get status of CIM transactions.
-
2.1.109 May 2015 -
2.1.005 May 2015Release notes
Open source →Added
- Transaction data returned in some CIM API calls can now be accessed easily.
-
2.0.028 Apr 2015 -
1.0.218 Apr 2015Release notes
Open source →Fixed
- Bug where AuthnetInvalidJsonException would not be thrown when invalid JSON was returned.
-
1.0.130 Mar 2015Release notes
Open source →Added
- More unit tests.
- More docbloc comments.
Fixed
- Bug where setting the third parameter AuthnetApiFactory::getJsonApiHandler to NULL would default to production endpoint.
- Throws AuthnetInvalidJsonException if response JSON is not valid.
Changed
- Finished adding examples.
-
1.0.021 Mar 2015Nothing published for this version