Magento 2 offline payment method renderers for Hyvä React Checkout
- Hyvä React Checkout (version >= 1.0.8) is installed and setup with your Magento site.
-
Go to your
package.json
of Hyvä React Checkout and add below configuration.File:
src/reactapp/package.json
"config": { "paymentMethodsRepo": { "offline": "git@github.com:hyva-themes/magento2-react-checkout-offline-payments.git" } },
-
Run
npm install
. This will do all necessary setup for you. -
Run
npm run build
to build a new version of the build js file which will now include this payment renderer. -
You can include following translations via layout xml file.
File:
view/frontend/layout/hyvareactcheckout_reactcheckout_index.xml
<referenceBlock name="checkout.translations"> <arguments> <argument name="checkout_translations" xsi:type="array"> <item name="hyva_react_checkout_offline" xsi:type="string"> <![CDATA[Purchase Order Number,Purchase order number is a required field.,Make Check payable to:,Send Check to:]]> </item> </argument> </arguments> </referenceBlock>
Magento 2 offline methods are Check / Money order, Bank transfer, Cash on delivery and Purchase order. All methods are now supported.
- If you have any doubts about the building the react app, then read more about it here.
- If you want to know more about how Hyvä Checkout helps you to integrate any payment methods, then read more about it here.
- The official documentation of Hyvä Checkout
- The official documentation of Offline payment methods in Magento 2
Special thanks to integer_net for building the initial release of this Magento2 offline payment methods for the Hyvä React Checkout!
BSD 3-Clause License. Please see License File for more information.