Description of the Bug
code is deprecated in APIException with the message to use apiErrorCode instead. apiErrorCode does not convey the same level of granularity of the failure. See screenshot.
Steps to reproduce
Attempt to create a hosted page checkout with an invalid coupon code.
Expected Behavior
I should be able to determine the specific cause of an error, e.g. coupon_not_applicable without using deprecated accessors
Code Snippets (if applicable)
Operating System
Mac
Language version
21
Library version
3.38.0
Additional context
No response
Description of the Bug
codeis deprecated in APIException with the message to useapiErrorCodeinstead.apiErrorCodedoes not convey the same level of granularity of the failure. See screenshot.Steps to reproduce
Attempt to create a hosted page checkout with an invalid coupon code.
Expected Behavior
I should be able to determine the specific cause of an error, e.g.
coupon_not_applicablewithout using deprecated accessorsCode Snippets (if applicable)
Operating System
Mac
Language version
21
Library version
3.38.0
Additional context
No response