I got the error from js file in checkout page. The error was thrown from the below lines affirm.ui.ready(function(){affirm.checkout(JSON.parse(response))

Here how to declare the affirm.

  • Hi, can you please share the error from the console as a screenshot, and please do share the JS file from where you are getting this error , Since to declare this affirm I need to know if it is a UI component or any widget that may be used, need more info on this error to debug? Commented Sep 16, 2022 at 7:04

1 Answer 1


I have also same error, someone can help me please: File location: vendor/affirm/magento2/view/frontend/web/js/action/inline-checkout.js enter image description here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.