buckaroo-it / Magento2_Hyva

This repository contains the additional module to support Hyvä React Checkout
3 stars 0 forks source link

Localhost:3000 fails: Uncaught type error: Cannot read properties of undefined (reading banks) #13

Closed ennostuurman closed 1 year ago

ennostuurman commented 1 year ago

Hyva React checkout 1.1.2

Localhost fails because of Uncaught type error: Cannot read properties of undefined (reading banks).

cannot-read-properties-of-undefined-reading-banks

ennostuurman commented 1 year ago

Note: not a big issue because this can be fixed with commenting out buckaroo in app/code/Hyva/CheckoutExample/reactapp/src/paymentMethods/customRenderers.js .

// import buckarooRenderers from './buckaroo/renderers';

export default {
  // ...buckarooRenderers,
};

But maybe there's a better workaround (test data?) in case you want to test Buckaroo on localhost:3000 ?

harli91 commented 1 year ago

you can do a build first, then go to the hyva checkout page and copy the config values from data-checkout_config attribute using the dev browser tools, then edit reactapp\public\index.html

ennostuurman commented 1 year ago

Works fine! Thanks @harli91