braintree / braintree_php

Braintree PHP library
https://developer.paypal.com/braintree/docs/start/overview
MIT License
547 stars 224 forks source link

SDK is missing Processor response codes #344

Open tzubertowski opened 1 month ago

tzubertowski commented 1 month ago

General information

Issue description

Braintree SDK does not provide an extensive list of processor response codes. Thus during integration we need to keep our own enum/constant list of response codes to handle them.

This is not ideal, as it means that whenever a response code is added our constant list becomes incomplete. By providing it in the SDK it would become a programmatic source of truth and not require us to webscrap Braintree's documentation :)