|
|
|
|
|
by mytailorisrich
1557 days ago
|
|
The API provider should have documented the change ahead of time. However they were still returning an error, even if a new error, when the payment failed. There should be a catch-all for errors and that should certainly not default to 'success'. Now, if the API provider really did change the API to return something new that is not an error this is indeed trickier. In general good design is to check specifically for success and to deem everything else a failure, which avoids this sort of surprise. |
|
It seems the safest option is whenever there is a new API state, a major version bump is needed