Trending Bestseller Perfect rating Documented

Custom Payment Gateways for WooCommerce

(2 customer reviews)

From: $29.99 / year

Add multiple custom payment gateways to WooCommerce.

Clear

Description

Custom Payment Gateways for WooCommerce Pro plugin lets you add multiple custom payment gateways to WooCommerce.

With this plugin you can add any number of custom payment gateways to WooCommerce. Just go to “WooCommerce > Settings > Custom Payment Gateways”, set “Number of gateways” option to total number of gateways you want to add and click “Save changes” button. After that on the same screen you will be able to set admin titles for each gateway.

Custom Payment Gateways for WooCommerce - General Settings

After setting total number of gateways, visit “WooCommerce > Settings > Payments” (or “WooCommerce > Settings > Checkout” in older versions of WooCommerce) to set each gateway’s options. For each custom payment gateway you can set:

General Options

Custom Payment Gateways for WooCommerce - Gateway Options - General

Enable/Disable
Enables/disables the current custom payment gateway.
Default: no
Title
Controls the title which the user sees during checkout.
Default: Custom Payment Gateway
Description
Payment method description that the customer will see on your checkout.
Default:
Custom Payment Gateway Description.
Instructions
Instructions that will be added to the thank you page.
Default: None
Email instructions
Instructions that will be added to the emails.
Default: None
Icon
If you want to show an image next to the gateway’s name on the frontend, enter a URL to an image.
Default: None

Advanced Options

Custom Payment Gateways for WooCommerce - Gateway Options - Advanced

Minimum order amount
If you want to set minimum order amount (excluding fees) to show this gateway on frontend, enter a number here. Set to 0 to disable.
Default: 0
Enable for shipping methods
If gateway is only available for certain shipping methods, set it up here. Leave blank to enable for all methods.
Default: None
Accept for virtual orders
Do accept gateway if the order is virtual.
Default: yes
Default order status
In case you need more custom order statuses – we suggest using free Order Status for WooCommerce plugin.
Default: Default WooCommerce order status (pending)
Send additional emails: Send to admin
This may help if you are using pending or custom default order status and not receiving admin new order emails.
Default: no
Send additional emails: Send to customer
This may help if you are using pending or custom default order status and not receiving customer processing order emails.
Default: no
Custom return URL (Thank You page)
Full URL. Optional. Leave blank to use default URL. Available placeholders: %order_id%, %order_key%.
Default: None

Fees Options

This section allows you to set extra checkout fees. For each custom payment gateway you can set multiple fees.

Custom Payment Gateways for WooCommerce - Gateway Options - Fees

Enabled
Enables/disables the current fee.
Default: yes
Title
Name for the fee. Multiple fees of the same name will be merged into one (with tax options from the first fee).
Default: None
Type
Sets fee type. Can be fixed or percent. Percent is calcuated from cart total.
Default: Fixed
Amount
Sets fee amount. This field is required.
Default: None
Min amount
Minimum fee amount. Used for “Percent” type fees.
Default: None
Max amount
Maximum fee amount. Used for “Percent” type fees.
Default: None
Taxable
Is the fee taxable?
Default: no
Tax class
The tax class for the fee if taxable. A blank string is standard tax class.
Default: None
Min cart total
Minimum cart total for fee to be applied.
Default: None
Max cart total
Maximum cart total for fee to be applied.
Default: None

General Fees Options

In addition to gateway specific fees options, there are also general settings located in “WooCommerce > Settings > Custom Payment Gateways > Fees”.

Custom Payment Gateways for WooCommerce - Fees Options

Fees
Enables/disables fees section.
Default: yes

Cart Total Options

This section sets how cart total should be calculated for the fees. Affects “Min cart total”, “Max cart total” options and “Percent” based fees.

Taxes
Include/exclude taxes when calculating cart total for the fees.
Default: yes
Shipping
Include/exclude shipping when calculating cart total for the fees.
Default: yes
Discounts
Include/exclude discount when calculating cart total for the fees.
Default: yes

Input Fields Options

If you want to collect data from customers on checkout (e.g. credit card numbers).

Custom Payment Gateways for WooCommerce - Gateway Options - Input Fields

Title
Input field’s title (required).
Default: None
Required
Is input field required to fill in on checkout.
Default: no
Type
Input field’s type. Possible values: Text; Number; Select(drop-downlist); Color; Date; Email; Range; Tel; Time; URL; Week; Month; Password; Checkbox; Textarea;.
Default: text
Placeholder
Input field’s placeholder (optional).
Default: None
Class
Input field’s CSS class (optional).
Default: None
Default value
Input field’s default value (optional).
Default: None
Options
Input field’s options – for “Select” type; one option per line.
Default: None

General Input Fields Options

In addition to gateway specific input fields options, there are also general settings located in “WooCommerce > Settings > Custom Payment Gateways > Input Fields”.

Custom Payment Gateways for WooCommerce - Input Fields Options

Input fields
Enables/disables input fields section.
Default: yes

Order Details Options

Add to order details
After order table. For example on “Thank You” page.
Default: no
Template: Header
Default:

<table class="widefat striped"><tbody>
Template: Each field
Placeholders: %title%, %value%.
Default:

<tr><th>%title%</th><td>%value%</td></tr>
Template: Footer
Default:

</tbody></table>

Emails Options

Add to emails
After order table.
Default: no
Sent to
Possible values: All emails; Admin emails only; Customer emails only.
Default: All emails
HTML template: Header
Default: None
HTML template: Each field
Placeholders: %title%, %value%.
Default:

<p>%title%: %value%</p>
HTML template: Footer
Default: None
Plain text template: Header
Default: None
Plain text template: Each field
Placeholders: %title%, %value%
Default:
%title%: %value%
Plain text template: Footer
Default: None

General Options

Add to order notes
Default: no

2 reviews for Custom Payment Gateways for WooCommerce

  1. blank

    HR

    Hi,

    This is pre-sale question. For input field, does it support upload function?

  2. blank

    techbp (verified owner)

    This plugin works like a charm! I installed the FREE version initially but then I loved it and upgraded to PRO.
    Good job guys please don’t be tired to continuously support this plugin.
    Thanks

Add a review

Your email address will not be published. Required fields are marked *

71 thoughts on "Custom Payment Gateways for WooCommerce"

  1. Please reply to my email. I already given you updated admim access to my website 2 or 3 days ago. Till now no response

    1. hi,

      any update?? You have acknowledged last May 19, 2020 that you can access my website with admin access. Is there any update/feedback?

      Can you solve the problem why your plugin is not working with my website? If not, please give me a full refund. I purchased your plugin last May 9 and also reported the problem on that date until now no solution.

    2. Hello Lemuel, I have just replied to your email. Apologies for the delay. If it doesn’t work on your site, we will definitely give you a full refund.

    3. How would you know if it doesn’t work? I have given you all access to test your plugin. But you are not doing any test order or whatsoever for you to check if it’s working or not on my site.

    4. Hi Lemuel,

      We are issuing a refund for this transaction today.

  2. I have a Question , I want to offer discounts on specific items , do you have this option in this plugin , and also I want to offer special discount on PayPal payment , does this plugin support such kind of stuff .

    1. Hi, The main purpose of this plugin is to enable creation of custom payment gateways.

      To offer discounts on payment gateways, you can use our other plugin: https://www.tychesoftwares.com/store/premium-plugins/payment-gateway-based-fees-and-discounts-for-woocommerce-plugin/ .

  3. I have installed this plugin on my website , But I am facing some issues , Some payments get cancelled , I then tried to contact to those people who tried to pay me , it took too much long time to process payments , kindly look into these issues.

    1. Hi,

      Time taken to process payments is something that the payment gateway should handle. Our plugin simply displays the custom payment gateway on the checkout page & brings the customer back to our site once the payment is processed.

      :Vishal

  4. Hi,

    I just purchased this plugin Custom Payment Gateways for WooCommerce and setup few payment gateways , but unfortunately it’s not working. I tried to make a purchase, but the option I created is not appearing.

    What could be the cause of the problem? What should I do to work this plugin?

    My website is http://www.promag300.com.

    Thanks for your reply in advance.

    Thank you,

    Lemuel

    1. Hello Lemuel,

      It’s very common for one of the conditions set in the payment gateway to cause the gateway to not show up on checkout page. It could be the shipping method that you’ve set, or the minimum order amount too.

      Can you share what rules you’ve set for the payment gateway? Can you also tell me the corresponding conditions in your shop (product added to cart, shipping method selected) in which case the gateway didn’t appear on the checkout page?

      :Vishal

    2. hi,

      The rules I just setup is
      – Checked Enable Custom Gateway
      – with descriptions/instructions/email instructions
      – Minimum order amount 1
      – Enable Shipping Method/s for Philippines – Table Rate#20
      – Checked Accept for virtual orders
      – Default order status: processing
      – Checked Send additional emails to admin and customer
      – Number of fees: 0
      – Number of input fields: 1
      – Unchecked required

    3. I am using WooCommerce Table Rate Shipping V.3.0.7

      The setup is per zone
      for Philippines

      This setup is currently working with WooCommerce basic Payment settings. I actually have Payment setting for Cash On Delivery and Cash On Pickup (one option) and is working.

      I bought Custom Payment Gateways for Woocommerce to separate Cash On Delivery and Cash On Pickup option and also to have few other payment options

    4. Hello,

      Still not working. I removed the paid plugin. I tried the free plugin. Still not working.

      What should I do?

    5. If you can’t solve this problem, please give me a full refund.

    6. Hi Lemuel,

      We will need access to your site to see why it’s not working. Please email us the credentials of your WordPress admin.

      :Vishal

  5. Hello,

    I want to create a custom payment gateway on my store which will allow users to pay through their bank. I have approval from a bank to access their backend API and how it will work is that user will get directed OFF my store, on to the bank website, I will only send the order details (for example, the total price to get charged), and then they must login to their bank website and on there they will be asked to pay that amount, with whichever bank account they have, and if they go through and process all that payment processing on their bank website, the bank website API supports a ‘order success’ callback URL to come back to my store page which will indicate successful payment…does your plugin allow integration with a system like this?

    Looking forward to your reply, thank you.

    1. Hello Frank,

      Yes, the plugin will work based on the description that you’ve given. You can have a look at all the options provided in the plugin on this page itself.

      :Vishal

  6. Hi Vishal,

    I am seriously considering buying your plugin – Custom Payment Gateways – I am using WCFM – WooCommerce Multivendor Marketplace from WC Lovers

    Few questions please:
    * If I understand correctly, I can add different gateways for different vendors? i.e. 500 Vendors = 500 PayFast accounts (South African payment gateway)
    * What is the total amount of gateways that can be created?
    * At place order does the vendor receive the full amount, or can this be split between me (marketplace owner) = 10% and the delivery company get R50 + R1 per product and the vendor gets 90% – R54 (four products added) currently WCFM shipping is set up in that way and shows shipping for each vendor separately.

    Please it is quite urgent, I need to set this up because we are launching next week.
    Andre

    1. Hello Andre,

      1. Yes, you can add different payment gateways but we have not tested our plugin with WooCommerce Multivendor Marketplace from WC Lovers.
      2. You can create as many payment gateways as you want.
      3. In our plugin, it is not possible directly to split payment with vendors.

      :Vishal

  7. Hi I´m using the WooCommerce Weight Based Shipping plugin to create shipping methods based on products weights. Now I try to make a Custom Payment Gateway available with a select shipping method created with Weight Based Shipping plugin. I can select the right shipping method but the Custom Payment Gateway will not show up on checkout. When I select “all Weight Based shipping method” the Custom Payment Gateway is available. But I need it with a defined shipping method to activate the correct Custom Payment Gateway for selected countries. I´m using the paid version from the Custom Payment Gateway. Any ideas?

    1. Hi Andreas,

      Can you check if you have the appropriate conditions are met when you select one specific shipping method? Usually in such cases, it is common that one of the conditions set for the payment gateway to show is not met & hence it doesn’t show up on the checkout page.

      :Vishal

    2. Hi Vishal, no success so far. I´ve avtivated the Debug Modus in the shipping options. I can see the shipping zone, like “Deutschland” the zone name is correct, and this is also the selected zone in the gateway settings, but still no luck. When I select all “Weight Based Shipping” methods the custom payment gateway shows up, but I need it for the countries only avaible in the defined shipping zone. Are there any other settings wich could have an impact?

  8. How can I update the status of the order automatically after the payment process is completed successfully ?

    1. Hi Muhammed,

      In the payment gateway settings, you can set the order status once the payment is completed. The field name is “Default order status” – you can set the order status in that one.

      :Vishal

  9. Hello, this plugin is not working on my website.
    On the frontend do not appear more than 2 gateways.
    Also, I’m not able to customize the gateway names and details!

    Could you please help me to solve that? Bellow I’m sending my admin account so you can check it, if is it possible.

    This is my website: http://www.canafionline.com.br

    I’ve send you an user login so you can check the plugin on my website.

    If it doesnt work I want my money back, please.

    1. Hello Oliver,

      We’ve received the details a few minutes back. We’ve also received the email with the access details. We’ll be able to check your issue tomorrow. I hope that is fine.

      Don’t worry about the refund. We will give you money back on it if it doesn’t work.

      :Vishal

    2. Thank you very much!

  10. Is the support for this plugin dead? I have sent several emails and asked questions in the comment section without any reply.

    1. Hi,

      Apologies for the delay in response. We have replied to you via email regarding your queries.

  11. Hello, I am experiencing a problem translating custom payment methods (title and description) by using Polylang. When I turn off all input field I can translate without any problem but when I turn on any input field the translation disappears (shows the original language). Please assist as soon as possible, the translation feature is very crucial to our website.

  12. Is it possible or are there any plans to allow a discount on a payment method instead of a fee addition?

    1. Hello Joseph,

      Currently there are no plans to allow for discount on payment gateways.

      You can use our other plugin: Payment Gateway based Fees & Discounts to allow for discounts on payment gateways. You can check it out here: https://wpfactory.com/item/payment-gateway-based-fees-and-discounts-for-woocommerce-plugin/ .

      :Vishal

  13. Hi, I would like to buy the Pro Version of this plugin, but I’m not sure cause I have a big issue with the Free Version.
    I have setup anything to work with price and discount depending on payment method. Anything works perfectly for all other payment methods rather than for the one created with your plugin.
    Will it work with the pro version? if not you will provide assistance on it?
    Thanks,
    mc

    1. If anyone else has a similar issue – it looks that there was some compatibility issue with our plugin’s “Fees” section and similar “WooCommerce Dynamic Pricing & Discounts” plugin’s “Cart Discounts” section. As soon as I’ve disabled our “Fees” section (in “WooCommerce > Settings > Custom Payment Gateways > Fees”), “Cart Discounts” started working normally.

  14. Custom return URL (Thank You page)
    Full URL. Optional. Leave blank to use default URL. Available placeholders: %order_id%, %order_key%.

    Is it possible to make a %order_total% ? to pass the amount over to the thank you url.

    I am using this for cash.me/$username/amount which will allow the user to pay via cash app.

    You could make a plugin just based on this and sell it. Let me know if this can be done!

    1. Hi,

      Thank you for the idea.

      Please update the plugin to the latest v1.6.3 – I’ve just added %order_total% placeholder, as requested.

      Please let me know if something is not working as expected or if you have any other ideas/questions. And if you like the plugin, please consider leaving me a rating.

  15. Hi there,
    Where are the custom gateways’ information stored inside the wordpress files – I’ve been looking for quite a while now and cannot seem to find it.

    Thanks,
    Tom

  16. Hi,

    we have “Custom Payment Gateways for WooCommerce” Pro and the “WooCommerce Extra Charges To Payment Gateway (Premium)” (http://mydealstm.com/shop/extracharge-premium/) Plugin.

    Unfortunately, in the Custom Payment Gateway Admin the entries of the “WooCommerce Extra Charges To Payment Gateway (Premium)” fields are not saved. Can you fix this?

    In the standard gateways the Extra Charges plugin works without problems.

  17. Hello,

    I bought your plugin and I would like to know if it possible to export all the value of all the orders of the input field created in my Custom Payment Gateway ? If not it’s ok.
    But most important thing, Is it possible to edit the value of the input field entered by the user from the woocommerce order page ?

    Thank

  18. Hi, I need to add a textarea field
    can i do it?

    1. Hi Andrew,

      Please update the plugin to version 1.4.2 – I’ve just added “Textarea” input field type there.

  19. What is going on here? I posted a problem for support and still haven’t heard something? Very unprofessional support, would you please get back to me, as this problem is very urgent, i’ve paid for a plugin from you which doesn’t work!

  20. I’m getting a Error message from Woocommerce in Checkout when using the custom gateways. This happens when i have checked in box that i want admin and customer to recieve email. This is a huge problem, since my customers now experience they can’t order with these options even though they are visible. Please tell me what the solution is. Thank you.

  21. I bought the pro version but I am getting this error at checkout “Sorry, it seems that there are no available payment methods for your state. Please contact us if you require assistance or wish to make alternate arrangements.”

  22. I am using your custom plugin for woocommerce POS pro and the field works, but will not show on the receipt when printed. Is there a way to have your custom gateway appear on the receipt?

    1. Hi Chris,

      That depends on what options does your WooCommerce POS plugin has for adding extra info to the receipts. If you wish, you can share an admin account to your site, so I could log in and check if this can be done. My email is [email protected].

  23. One more question, is it possible to hook a function to validate the input fields created?
    E.g. the customer enters an email or phone number and I like to have a server side check to validate his input?
    Best regards…

    1. Hi again, TJ,

      I was going to add a filter as requested, however, I’ve realized that we can already do that with WooCommerce woocommerce_after_checkout_validation filter. Please check the “Developers” tab on the current page – I’ve just added an example for input fields extra validation there.

      Let me know if you have any questions.

  24. Is it possible to have an input field of the type “checkbox” ?
    So I need additional input fields and a checkbox, where the client agrees the data to be submitted…

    1. Hi TJ,

      Sorry for a late reply. Wasn’t possible, but I’ve just added it to the plugin. Please update to v1.4.1 and let me know if you have any notes or questions.

      P.S. If you like the plugin, please consider leaving me a rating.

  25. Hi! Can I add the custom input fields to customer and admin emails?

    1. Hi Emelie,

      Unfortunately not possible at the moment, but this seems like a useful feature – please give me a couple of days to add it to the plugin.

    2. Hi Tom!
      Wow, that would be great! Let me know when it’s possible!
      //Emelie

    3. Hi Emelie,

      It took a little bit longer than I expected, but, as promised, we’ve just released new plugin version 1.4.0, where I’ve added options to add input fields to emails. You need to enable it in “WooCommerce > Settings > Custom Payment Gateways > Input Fields > Emails Options”. Please take a look and let me know if something is not working as expected or if you have any questions. And if you like the plugin, please consider leaving me a rating.

  26. Hello, I have 65 payment methods. I wanted to add a custom payment method consisting of a drop-down that offers all 65 methods. Is this possibile?

    1. Hi Robert,

      Sorry for a late reply. Do you mean that you need a dropdown box on checkout with 65 values (i.e. similar to currently existing input fields options, but dropdown instead if text input)? If that’s correct – I could probably add it to the plugin.

    2. Hi Robert,

      I’m not sure if I understood it correctly but in plugin version 1.4.0 I’ve added new “Select (drop-down list)” type option to the input fields settings – hopefully, this is what you needed. Please let me know if I misunderstood you.

  27. Can someone confirm if this is working on the latest version of WooCommerce? It seems the Pro version does not work on the latest version.

    1. Hi Andrew,

      I’ve just rechecked it on my test server (WooCommerce v3.5.4 and WordPress v5.0.3) – it seems to be working fine here. What issues are you having? Custom payment gateways are not shown at all? Or you can’t finish the order? Or something else?

      P.S. If you wish you can create/share an admin account to your server (WP and preferably FTP), so I could log in and check what’s going on. My private email is [email protected].

    2. Hi Tom,

      Yes, the fields at checkout no longer show. I’ll shoot you access when I get a second. Thanks man.

  28. Hi, i buy your plugin Custom Payment Gateways for WooCommerce Pro but how i different another email than admin?

    1. Hi,

      In case if anyone else has same question – as we figured out in private conversation:

      Send to admin checkbox in Send additional emails option – sent emails are standard WooCommerce “New order” emails, so you can add/change recipients in “WooCommerce > Settings > Emails > New order > Recipient(s)”.

      This is not directly related to the question, but: Send to customer checkbox in Send additional emails option – again sent emails are standard WooCommerce “Processing order” emails, and although recipient is always customer and can’t be changed, you can change other email settings (subject, heading etc.) in “WooCommerce > Settings > Emails > Processing order”.

      Hope that helps.

  29. I am trying to buy it but it says payment failed. 3000 do not honor error

  30. Hi, I more or less have the same question as Rama. With the paid version can a payment gateway be added using a gateway API login with transaction key (such as using a payment gateway emulator like what is offered by Authorize.net), or is it similar to the free version where it gives instructions to the customer on how to pay such as offline or externally?

  31. Hi, I want to buy this plugin but i need to clear some points on it.

    1. How many payment methods i can add after the purchase of this plugin
    2.Are all the payment methods work as same as the one free method provided by you?
    Replay me asap

    Thanks

  32. Same error : Just installed, activated, enabled and wrote all texts, but then never shown on the checkout., when it would be listed together with all my other gateways. Is there anything worng with the current version? I use WordPress 4.9.1 running Rehub child theme theme

  33. Just installed, activated, enabled and wrote all texts, but then never shown on the checkout., when it would be listed together with all my other gateways. Is there anything worng with the current version? I use WordPress 4.9.1 running Rehub child theme theme.

  34. Hi, i sent you a email, i can’t buy a pro version!!! why?

    1. Hi,

      It was a bug on our site – sorry for that. Now Pro version is available for purchase.

      Best regards,
      Tom

  35. Hi,
    I have question, I need the item name and individual price to be sent to the third party.
    Can this plugin do that?
    Thank you in advance.

Leave a Reply

Your email address will not be published. Required fields are marked *

Changelog

1.6.3 - 04/02/2020

  • Dev - Custom return URL (Thank You page) - %order_total% placeholder added.

1.6.2 - 03/02/2020

  • Dev - Code refactoring.
  • Plugin description updated.
  • WC tested up to: 3.9.

1.6.1 - 03/01/2020

  • Dev - Input Fields - 'Process in "Advanced Order Export For WooCommerce" plugin' options added.
  • Dev - Typo fixed in admin settings.

1.6.0 - 25/12/2019

  • Dev - "Fees" options section added.
  • Dev - Input Fields - "Enable section" option added.
  • Dev - Code refactoring.

1.5.0 - 02/12/2019

  • Dev - Input Fields - "Add to order notes" option added.
  • Dev - Admin settings descriptions updated.
  • Dev - Code refactoring.
  • WC tested up to: 3.8.
  • Tested up to: 5.3.

1.4.2 - 10/09/2019

  • Dev - Input Fields - "Textarea" type added.
  • WC tested up to: 3.7.

1.4.1 - 20/07/2019

  • Dev - Input Fields - Type - "Checkbox" option added.

1.4.0 - 18/06/2019

  • Dev - Input Fields - General Options - "Add to order details" option added.
  • Dev - Input Fields - General Options - "Add to emails" options added.
  • Dev - Input Fields - "Type" option added.
  • Dev - General admin settings split into sections.
  • Dev - Code refactoring.

1.3.0 - 22/05/2019

  • Dev - "Input Fields" options added.
  • Dev - Advanced Options - Shipping methods - "Do not load" option added.
  • Tested up to: 5.2
  • WC tested up to: 3.6

1.2.2 - 15/04/2019

  • Dev - Custom return URL (Thank You page) - %order_id% and %order_key% placeholders added. alg_wc_custom_payment_gateway_custom_return_url filter added.

1.2.1 - 01/04/2019

  • Fix - "Text Domain" renamed to custom-payment-gateways-woocommerce.
  • Dev - Advanced Options - "Load shipping method instances" option added.
  • Dev - Empty values are now allowed in custom payment gateway's "Title" and "Description".

1.2.0 - 14/12/2018

  • Dev - Enable for shipping methods - Listing all shipping instances (i.e. by shipping zones) now (instead of just shipping methods).
  • Dev - Code refactoring.
  • Dev - Admin settings restyled.

1.1.1 - 05/08/2018

  • Dev - Admin settings restyled and descriptions updated.
  • Dev - Plugin link updated.
  • Dev - readme.txt updated.

1.1.0 - 26/07/2017

  • Dev - WooCommerce v3 compatibility - reduce_order_stock() replaced with wc_reduce_stock_levels().
  • Dev - WooCommerce v3 compatibility - Order status, payment method and shipping method - Getting with functions instead of accessing properties directly.
  • Dev - Autoloading plugin options.
  • Dev - Link updated from http://coder.fm to https://wpcodefactory.com.
  • Dev - Plugin header ("Text Domain" etc.) updated.
  • Dev - POT file added.

1.0.0 - 17/02/2017

  • Initial Release.

Free version

This plugin is a premium version of free "Custom Payment Gateways for WooCommerce" plugin.

Developers

Exporting Input Fields

Input fields are stored in an array as order meta with _alg_wc_cpg_input_fields key, so if you would need to retrieve them:

if ( ! function_exists( 'alg_wc_cpg_print_input_fields' ) ) {
    /**
     * Function prints order's custom payment gateway's input fields titles and values.
     */
    function alg_wc_cpg_print_input_fields( $order_id ) {
        $input_fields = get_post_meta( $order_id, '_alg_wc_cpg_input_fields', true );
        foreach ( $input_fields as $title => $value ) {
            echo $title . ' = ' . $value . PHP_EOL;
        }
    }
}

Extra Validation for the Input Fields

If you need to add some extra validation to gateway's input fields, you can use WooCommerce woocommerce_after_checkout_validation filter. For example let's say you need to check if field's input is alphanumeric:

add_action( 'woocommerce_after_checkout_validation', 'alg_wc_cpg_my_validate_input_fields', 10, 2 );
if ( ! function_exists( 'alg_wc_cpg_my_validate_input_fields' ) ) {
    /**
     * alg_wc_cpg_my_validate_input_fields.
     */
    function alg_wc_cpg_my_validate_input_fields( $data, $errors ) {
        $gateway = 'alg_custom_gateway_2'; // Here you need to set gateway to check
        $field   = 'My field title';       // Here you need to set field (title) to check
        if ( ! empty( $data['payment_method'] ) && $gateway === $data['payment_method'] ) {
            if ( isset( $_POST['alg_wc_cpg_input_fields'][ $gateway ][ $field ] ) ) {
                if ( ! ctype_alnum( sanitize_text_field( $_POST['alg_wc_cpg_input_fields'][ $gateway ][ $field ] ) ) ) {
                    $errors->add( 'alg_wc_custom_payment_gateways', sprintf( '%s must be alphanumeric!', $field ) );
                }
            }
        }
    }
}

Prices & Licenses

Single siteUnlimited sites
1 year[buy] $29.99 / year[buy] $79.99 / year
Lifetime[buy] $49.99[buy] $149.99

Installation and Updates

  • Buy the plugin 🙂
  • Download plugin's zip to your computer (you will receive an email with download link, or you can always download the plugin from your account).
  • Go to "Admin Dashboard > Plugins > Add New > Upload Plugin" and browse for downloaded zip file.
  • If plugin is successfully installed - you should see it added to the Plugins list.
  • To keep WPFactory items up to date, please install WPFactory Helper plugin and enter your site key.

Refunds

We want to ensure that you are 100% happy with your purchase, so if you feel the product(s) you purchased are not the best fit for your requirements and you attempted to resolve issues with product's author, we are offering 30 day money back guarantee refund policy.