World Cup coming to an end got you down? No worries; we have good news to cheer you up! We continue our hard work to improve the gateway and client libraries. We want to make sure we're continually making improvements to the gateway and delivering those improvements to you as quickly as possible. That is why you will continue to see frequent releases from us. So don't fear -- unlike the World Cup, you won't have to wait 4 years before our next release. See below for the new things we have done to enhance your experience with us. As always, we want to hear your feedback, so keep it coming.
Single Error Message
There are a few reasons why an API call might return an error response, and it varies depending on the API action. For example, when creating transactions, you'll get an error response if any parameters are invalid, or if the transaction is declined by the processor or rejected according to your processing rules. Checking for several different outcomes is inconvenient, so we've added a single error message to error result objects.
Error Results Docs: Ruby | PHP | Python | Java | .NET
ISO 3166-1 Country Codes
In addition to being able to specify a country by using its name, you can now specify the country for addresses using alpha2 ("US"), alpha3 ("USA"), or numeric codes.
Countries: Ruby | PHP | Python | Java | .NET
Specifying country: Ruby | PHP | Python | Java | .NET
Expired Cards
We've supported the ability to search for expired credit cards in the control panel, and have now added it to the API as well.
Docs: Ruby | Python | PHP | Java | .NET
Gateway Rejection Reason
We now provide the gateway rejection reason on transactions, indicating whether a transaction was rejected because of AVS, CVV, or Duplicate Transaction rules.
Docs: Ruby | Python | PHP | Java | .NET
Hope the new release is helpful!
Thanks,
The Braintree Dev Team