Open the package.json file and add the following line:
"config": {
"paymentMethodsRepo": {
"mollie": "[email protected]:mollie/magento2-hyva-react-checkout.git"
}
},
Next, run npm install
. This should install the repository into your checkout.
When using the regular React checkout then you are done. But if you are using the Hyvä CheckoutExample Module Template, then you need to change the relative paths. For example in src/components/DefaultRenderer.jsx
:
- import RadioInput from '../../../../components/common/Form/RadioInput';
+ import RadioInput from '@hyva/react-checkout/components/common/Form/RadioInput';