Skip to content

kundan121/wp-custom-payment-gateway

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

wp-custom-payment-gateway

Create Your custom payment gateway for woocommerce in wordpress

If you want to create your custom payment gateway for some special users , like for some users having a specific role. Then it would be very helpful for you.

I created this for my client's special requirement. I need to create a special payment gateway for users having role Wholesaler (wholesale_customer). So that the Wholesalers can place an order without making a payment , and get a bill in the last of the month.

You can just place the whole code in theme's functions.php , or you can create your custom plugin with this code. If you faces any problem , feel free to contact me.

Requirements

  1. Your php version should be greater than 5.5
  2. wordpress version should be 4.5 or above
  3. Woocommerce version should be 3.2.0 or above

Benefits

  1. You can create your own custom payment gateway
  2. You can provide this for some specific users
  3. You can customize it ahead , as your requirement
  4. If you faces any problem , feel free to contact me.

Directions to use

  1. place this code in your active theme's functions.php
  2. You can update the payment gateway details from here https://yourdomain.com/wp-admin/admin.php?page=wc-settings&tab=checkout&section=pay_on_account_gateway
  3. When a user places and order using this payment gateway , order status would be "Payment On Account"

Thanks :)

For any further queries you can contact me directly here on my email id: kundansinghsorout@gmail.com