I understand that this payment integration requires an example template to be set up in order to make it work. But, the support for example template should be an addition and the main branch should aim at the Hyvä Checkout repository itself. This is because the example template is one among the solution with which we can setup Hyvä Checkout.
Developers can set up Hyvä Checkout in app/code directory. They can also create a fork from the repo and do customization through the fork. In those cases @hyva/react-checkout would not work.
I recommend moving the current main branch to some other branch, for example, hyva-checkout-example-template so that those who use the example template can still use the current state. Then replace @hyva/react-checkout reference with the relative reference to the original component. See hyva-checkout-example-template from payone repo.
I understand that this payment integration requires an example template to be set up in order to make it work. But, the support for example template should be an addition and the main branch should aim at the Hyvä Checkout repository itself. This is because the example template is one among the solution with which we can setup Hyvä Checkout.
Developers can set up Hyvä Checkout in
app/code
directory. They can also create a fork from the repo and do customization through the fork. In those cases@hyva/react-checkout
would not work.I recommend moving the current
main
branch to some other branch, for example,hyva-checkout-example-template
so that those who use the example template can still use the current state. Then replace@hyva/react-checkout
reference with the relative reference to the original component. See hyva-checkout-example-template from payone repo.Reference needs to be corrected: