Make it easy for your customers from Croatia to perform direct bank transfer with generated payment slip, along with barcode for mBanking.
This plugin adds to the WooCommerce new payment gateway which is actually customization of Direct Bank Transfer payment option applicable for customers from the Republic of Croatia. By installing, activating and enabling this payment gateway users are able to select payment options that offers them following:
- generated and pre-filled payment slip document which can be downloaded and printed, and then brought to any bank or post-office for making payment
- aforementioned payment slip also contains barcode which can be scanned through many apps for mobile banking in Croatia, thus making the payment process much faster and easier
Translations:
- Croatian
- English
This plugin requires at least PHP version 5.6. Also the following PHP modules have to be installed and enabled:
- bcmath
- fileinfo
- gd
- mbstring
This section describes how to install the plugin and get it working.
- Upload code of this plugin (or source code of this repo along with all required dependencies fetched by calling
composer install
) to the/wp-content/plugins/
directory or install it under WordPress admin area - Activate the plugin through the 'Plugins' menu in WordPress
Additional payment option is displayed on the checkout page and can be selected
After user selects that option and proceeds to the payment, image of the payment slip, filled with previously-entered customer's data, is being shown. The same image is also sent to the customer via Email
All fields (along with various other properties) can be set through settings page of this payment gateway that is located within WooCommerce Admin Dashboard
Q: Where can I report bugs or contribute to the project?
A: You can report bugs on issue section of this repo or in WordPress plugin support forum.
Q: How to handle order prices in different currency, so they could be converted to the prices corresponding to the currency on the payment slip?
A: In your functions.php
file you should add function to the filter 'wooplatnica-croatia_order' that would perform conversion of the order price (which could be extracted from the object of class WC_Order passed as a first/only function argument) and would return instance of WC_Order class with updated field values.
- Webmonster - team that developed plugin Wooplatnica (Serbian payment slip generator for WooCommerce)
- Ivan Habunek - author of PDF 417 barcode generator for PHP