bigcommerce / checkout-sdk-js

BigCommerce Checkout JavaScript SDK
MIT License
132 stars 215 forks source link

feat(checkout): CHECKOUT-8587 Throw error when payment endpoint returns error/failure #2631

Closed richapatel1510 closed 1 week ago

richapatel1510 commented 2 weeks ago

What?

Throw error when the payments endpoint returns type: error/failure with status 200.

Why?

So that error can be better handled on manual order UI and appropriate message could be displayed.

Testing / Proof