We sometimes have a situation when AJAX call to bambora/checkout/assets results in fatal error for whatever reason. HTTP response code is set like 500 or 503, and some text status is returned, e.g. "see exception logs ...".
Current implementation does not check JSON format. Treats return string as success codes and iterates them, resulting in a lot of malformed images, one for each character in response.
Hi!
We sometimes have a situation when AJAX call to
bambora/checkout/assets
results in fatal error for whatever reason. HTTP response code is set like 500 or 503, and some text status is returned, e.g. "see exception logs ...".https://prnt.sc/o3e38t
Current implementation does not check JSON format. Treats return string as success codes and iterates them, resulting in a lot of malformed images, one for each character in response.
https://prnt.sc/o3e3cl
Please review the change :)