Migs Payment Gateway – WordPress Plugin

Migs (Mastercard Internet Gateway Service) Payment Gateway gives you a chance to add Buy now buttons and create your own without coding knowledge, the plugin also has hooks and filters with reporting tools.

Greetings everyone,

It’s such a pleasure to see you using WordPress and this plugin, nevertheless I do have to remind you that this plugin is “NOT A MIGS OFFICIAL PLUGIN” and it’s shared under “GNU GENERAL PUBLIC LICENSE”.

So please take your time and read the license.txt especially the “NO WARRANTY” section, and remember to check your Migs portal for each transaction before processing any shipment. If you find any bugs please report them on wordpress.org so I can try resolve them.

Before Starting!!

Please make sure your account is working, use the bank test page or go to Test-Case page… If test case is returning "Not Calculated - No 'SECURE_SECRET' present."Please retry it on your bank test page if both gives this then contact the bank. (Small TIP) Ask the bank to run a test of your account…

How to add paying button to the website?

To add a new button to the website you can add this button to any page/post:

In php code:

As you notice the default text is “Buy now” to change this:

In php code:

To add a css class:

In php code:

To add a predefined post id (This can be used):

In php code:

To show price in button:

In php code:

Show button for logged in only in users:

In php code:

The amount is required!!!

For more advanced options with the button please use the “migs_payment_gateway_modify_button” filter.

How to set a custom return url: (this is not obligatory)

1- Create a new page/post (Depends on your needs and design). 1- Paste this code in the page [my_migs_return_url] 1- Copy the page ID to Settings page

The return url will be updated to the new page/post.

List of action hooks:

  • migs_payment_gateway_update_on_return
  • migs_payment_gateway_send_admin_email
  • migs_payment_gateway_insert_to_logs
  • migs_payment_gateway_settings_updated
  • migs_payment_gateway_get_settings

List of action hooks:

  • migs_payment_gateway_update_on_return
  • migs_payment_gateway_send_admin_email
  • migs_payment_gateway_insert_to_logs
  • migs_payment_gateway_settings_updated
  • migs_payment_gateway_get_settings

Example: How to add action hooks to this plugin?

This code can be added in functions.php in the theme folder.

List of filter hooks:

migs_payment_gateway_modify_button

How to add filter hooks to the plugin?

This code can be added in functions.php in the theme folder.

https://wordpress.org/plugins/migs-payment-gateway/
https://wordpress.org/plugins/migs-payment-gateway/screenshots/