Skip to content

Make it easy for your customers from Croatia to perform direct bank transfer with generated and pre-filled payment slip, along with mobile banking by simple barcode scanning

License

Notifications You must be signed in to change notification settings

zeko868/Croatian-payment-slip-generator-for-WooCommerce

Repository files navigation

Banner of croatian payment slip generator for WooCommerce

Read this in other languages: English, Hrvatski.

Description

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

Requirements

This plugin requires at least PHP version 5.6. Also the following PHP modules have to be installed and enabled:

  • bcmath
  • fileinfo
  • gd
  • mbstring

Installation

This section describes how to install the plugin and get it working.

  1. Install this plugin through Plugins menu of WordPress Dashboard Admin Area by using search and downloading it from its WordPress page or upload the 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
  2. Activate the plugin through the 'Plugins' menu in WordPress

Screenshots

Additional payment option is displayed on the checkout page and can be selected
payment option on checkout page
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
payment slip and barcode preview
All fields (along with various other properties) can be set through settings page of this payment gateway that is located within WooCommerce Admin Dashboard payment option settings part 1
payment option settings part 2
payment option settings part 3

Frequently Asked Questions

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: Why aren't customers receiving e-mail messages with order details?

A: In case you are encountering this issue, potential cause could be because you are using some plugin that is changing default behaviour of SMTP client. If you don't want to sacrifice that plugin, the solution is to deselect the option "Display image(s) inline in e-mail message body" in the settings page of this plugin which will be cause that e-mail messages won't be sent using PHPMailer module, but using alternative way. By using this approach the images won't be displayed inline in e-mail message body, yet they will be treated as regular attachments, although at least the e-mail messages will be delivered to the customers.


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.

Special thanks to

External links

About

Make it easy for your customers from Croatia to perform direct bank transfer with generated and pre-filled payment slip, along with mobile banking by simple barcode scanning

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages