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/

Gabriel Ajabahian
Software Engineer Freelance
I am a Freelance consultant, I’m passionate about creating dynamic applications. With 10+ years technical experience as well as working on major application systems for top down.

I have extensive software engineering experience, recently I focus on Scala/Java and JavaScript. On the other hand, I have experience with C# and .net framework/core. I focus on integrating applications that are built against different frameworks and can run on different platforms.

Scalability, efficiency and performance are key topics for any software, that’s why I keep track of the newest technologies, I never underestimate the power of the cloud, that’s why I do believe in using this power with “edge applications” to expand software’s and solutions to a new level.

Being a software engineer who understand the business as well as my team, looking at things from different perspectives. Being open and honest and investing in relationship makes a big difference.

Specialties: Software development, Scrum/Agile, Process and Problem management.