In 2016, I started writing a custom plugin for my own online store, De Quixote, which was built using WordPress and WooCommerce.
At that time, Indonesian payment methods available on WordPress were not as diversed as now, and the built-in WooCommerce has only one Bank Account Clearing System (BACS) method.
In Indonesian market at that time, using a credit card through Paypal or Stripe was not the right choice, and it was quite hard to find customers who possess a credit card.
Then again, it was difficult to expand the market and boost our monthly sales if our infrastructure only supports payments through credit card. Certainly not wise.
To solve the limitation, I came up with an idea to create my own plugin. By extending the BACS function in WooCommerce, I’m able to multiply BACS choices and use Indonesian major banks names instead of Direct Transfer.
The final result is known as Indonesian Banks for WooCommerce, my very first WordPress and WooCommerce plugin, which is available in two versions: Free and Premium.
The Code Overview
The code I’m using is very simple and straightforward. Each bank has its own class
defined, and after declaring $methods
function, we can then add each bank available on WooCommerce => Payments menu as an option.
function add_indonesian_banks_gateway( $methods ) { $methods[] = 'WC_Gateway_Mandiri'; $methods[] = 'WC_Gateway_bni'; $methods[] = 'WC_Gateway_bri'; return $methods; }
The final output then looks like this:
You can create as many banks as you need for your online store.
Payment Code Feature on the Free Version
The Payment Code feature is available on both free and premium version. Once activated, it will add additional 3 unique digits into the total price, helps store owners easily identify payments made by their customers by looking into the 3-digit payment code.
The Premium Version of Indonesian Banks Premium
The premium version contains some additional features which will boost the payment option. Numerous Indonesian banks on request, payment code, custom logo on checkout page, and dynamic discount per payment method are available on the premium version.
Learn more about the free and premium version here:
https://www.seniberpikir.com/indonesian-banks-plugin-woocommerce-toko-online-indonesia/
To purchase the Indonesian Banks for WooCommerce Premium, go straight to:
https://www.dequixote.com/product/indonesian-banks-premium/