- A working Magento site with Stripe module installed and configured.
- Hyvä React Checkout is installed and configured.
-
Add payment method repository to package.json inside react application folder. Follow only one of the following steps (a or b).
a. if you've used Hyvä CheckoutExample Module Template for customizations
``` "config": { "paymentMethodsRepo": { "stripe_payments": "[email protected]:eltrino/magento2-hyva-checkout-stripe.git -b hyva-checkout-example-template" } }, ```
b. if you've installed Hyvä Checkout in the app/code folder
``` "config": { "paymentMethodsRepo": { "stripe_payments": "[email protected]:eltrino/magento2-hyva-checkout-stripe.git" } }, ```
-
Install additional dependencies
npm i @stripe/react-stripe-js@^2.6.0 @stripe/stripe-js@^3.0.8
to react application. -
Run
npm install
inside react application. -
Run
NODE_ENV=production npm run build
inside react application.