{"id":26515,"date":"2013-12-01T23:43:33","date_gmt":"2013-12-01T23:43:33","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/migs-payment-gateway\/"},"modified":"2015-08-26T18:13:38","modified_gmt":"2015-08-26T18:13:38","slug":"migs-payment-gateway","status":"closed","type":"plugin","link":"https:\/\/wordpress.org\/plugins\/migs-payment-gateway\/","author":8014348,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"1.1","stable_tag":"trunk","tested":"4.1.42","requires":"3.7.1","requires_php":"","requires_plugins":"","header_name":"Migs Payment Gateway","header_author":"Gabriel82","header_description":"","assets_banners_color":"19171c","last_updated":"2015-08-26 18:13:38","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"https:\/\/www.openprogrammer.info\/2012\/01\/01\/migs-payment-gateway\/","header_author_uri":"http:\/\/www.openprogrammer.info\/","rating":5,"author_block_rating":0,"active_installs":10,"downloads":1663,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":[],"upgrade_notice":[],"ratings":{"1":0,"2":0,"3":0,"4":0,"5":"1"},"assets_icons":[],"assets_banners":{"banner-772x250.png":{"filename":"banner-772x250.png","revision":"813576","resolution":"772x250","location":"assets"}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.0"],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":"813583","resolution":"1","location":"assets"},"screenshot-2.png":{"filename":"screenshot-2.png","revision":"813583","resolution":"2","location":"assets"},"screenshot-3.png":{"filename":"screenshot-3.png","revision":"813583","resolution":"3","location":"assets"},"screenshot-4.png":{"filename":"screenshot-4.png","revision":"813583","resolution":"4","location":"assets"}},"screenshots":{"1":"This page in exists in wp-admin, Check transactions allows you to see every transaction made on your website.","2":"Changing the settings of the Migs payment.","3":"How to add shortcodes easily from the text editor.","4":"Test your account."}},"plugin_section":[],"plugin_tags":[43128,43127,43130,43126,43129],"plugin_category":[],"plugin_contributors":[96210],"plugin_business_model":[],"class_list":["post-26515","plugin","type-plugin","status-closed","hentry","plugin_tags-banks-gateway","plugin_tags-master-card-gateway","plugin_tags-migs","plugin_tags-migs-banking-gateway","plugin_tags-visa-mastercard-plugin","plugin_contributors-gabriel82","plugin_committers-gabriel82"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/migs-payment-gateway_19171c.svg","icon_2x":false,"generated":true},"screenshots":[{"src":"https:\/\/ps.w.org\/migs-payment-gateway\/assets\/screenshot-1.png?rev=813583","caption":"This page in exists in wp-admin, Check transactions allows you to see every transaction made on your website."},{"src":"https:\/\/ps.w.org\/migs-payment-gateway\/assets\/screenshot-2.png?rev=813583","caption":"Changing the settings of the Migs payment."},{"src":"https:\/\/ps.w.org\/migs-payment-gateway\/assets\/screenshot-3.png?rev=813583","caption":"How to add shortcodes easily from the text editor."},{"src":"https:\/\/ps.w.org\/migs-payment-gateway\/assets\/screenshot-4.png?rev=813583","caption":"Test your account."}],"raw_content":"<!--section=description-->\n<p>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.<\/p>\n\n<p>Greetings everyone,<\/p>\n\n<p>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\"\nand it's shared under \"GNU GENERAL PUBLIC LICENSE\".<\/p>\n\n<p>So please take your time and read the license.txt especially the \u201cNO WARRANTY\u201d section, and remember to check your Migs portal for each transaction before processing any shipment.\nIf you find any bugs please report them on wordpress.org so I can try resolve them.<\/p>\n\n<p>Regards,\nGabriel<\/p>\n\n<h3><\/h3>\n\n<h4>Before Starting!!<\/h4>\n\n<p>Please make sure your account is working, use the bank test page or go to Test-Case page... If test case is returning <code>\"Not Calculated - No 'SECURE_SECRET' present.\"<\/code> \nPlease retry it on your bank test page if both gives this then contact the bank.\n(Small TIP) Ask the bank to run a test of your account...<\/p>\n\n<h4>How to add paying button to the website?<\/h4>\n\n<p>To add a new button to the website you can add this button to any page\/post:\n    [my_migs_button amount=\"100\"]\nIn php code:\n    do_shortcode('[my_migs_button amount=\"100\"]')<\/p>\n\n<h4>As you notice the default text is \"Buy now\" to change this:<\/h4>\n\n<pre><code>[my_migs_button amount=\"100\" text=\"Buy new item!\"]\n<\/code><\/pre>\n\n<p>In php code:\n    do_shortcode('[my_migs_button amount=\"100\" text=\"Buy new item!\"]')<\/p>\n\n<h4>To add a css class:<\/h4>\n\n<pre><code>[my_migs_button amount=\"100\" cssclass=\"somecolors\"]\n<\/code><\/pre>\n\n<p>In php code:\n    do_shortcode('[my_migs_button amount=\"100\" cssclass=\"somecolors\"]')<\/p>\n\n<h4>To add a predefined post id (This can be used):<\/h4>\n\n<pre><code>[my_migs_button amount=\"100\" post_id=\"1\"]\n<\/code><\/pre>\n\n<p>In php code:\n    do_shortcode('[my_migs_button amount=\"100\" post_id=\"1\"]')<\/p>\n\n<h4>To show price in button:<\/h4>\n\n<pre><code>[my_migs_button amount=\"100\" showprice=\"1\"]\n<\/code><\/pre>\n\n<p>In php code:\n    do_shortcode('[my_migs_button amount=\"100\" showprice=\"1\"]')<\/p>\n\n<h4>Show button for logged in only in users:<\/h4>\n\n<pre><code>[my_migs_button amount=\"100\" loggedinonly=\"1\"]\n<\/code><\/pre>\n\n<p>In php code:\n    do_shortcode('[my_migs_button amount=\"100\" loggedinonly=\"1\"]')<\/p>\n\n<h4>The amount is required!!!<\/h4>\n\n<p>For more advanced options with the button please use the \"migs_payment_gateway_modify_button\" filter.<\/p>\n\n<h4>How to set a custom return url: (this is not obligatory)<\/h4>\n\n<p>1- Create a new page\/post (Depends on your needs and design).\n1- Paste this code in the page [my_migs_return_url]\n1- Copy the page ID to Settings page<\/p>\n\n<p>The return url will be updated to the new page\/post.<\/p>\n\n<h4>List of action hooks:<\/h4>\n\n<ul>\n<li>migs_payment_gateway_update_on_return<\/li>\n<li>migs_payment_gateway_send_admin_email<\/li>\n<li>migs_payment_gateway_insert_to_logs<\/li>\n<li>migs_payment_gateway_settings_updated<\/li>\n<li>migs_payment_gateway_get_settings<\/li>\n<\/ul>\n\n<h4>List of action hooks:<\/h4>\n\n<ul>\n<li>migs_payment_gateway_update_on_return<\/li>\n<li>migs_payment_gateway_send_admin_email<\/li>\n<li>migs_payment_gateway_insert_to_logs<\/li>\n<li>migs_payment_gateway_settings_updated<\/li>\n<li>migs_payment_gateway_get_settings<\/li>\n<\/ul>\n\n<h4>Example: How to add action hooks to this plugin?<\/h4>\n\n<p>This code can be added in functions.php in the theme folder.<\/p>\n\n<pre><code>function bank_transection_return($obj) {\n    if ($obj-&gt;updated &gt; 0){\n        \/\/When it comes here it means the product was successfully updated and paid.\n        print_r($obj);\n    }else{\n        \/\/When it comes here it means the product was not updated but that does not mean the product was not paid.\n        echo \"Did not update? \";\n    }\n}\nadd_action('migs_payment_gateway_update_on_return', 'bank_transection_return', 10 , 1);\n<\/code><\/pre>\n\n<h4>List of filter hooks:<\/h4>\n\n<p>migs_payment_gateway_modify_button<\/p>\n\n<h4>How to add filter hooks to the plugin?<\/h4>\n\n<p>This code can be added in functions.php in the theme folder.\n    function migs_payment_gateway_modify_button_html( $html, $atts ) {\n        \/\/This filter you can change the buttons on the site\n        \/\/print_r($atts) Will return Array ( [amount] =&gt; 100 [text] =&gt; Buy new shoes ) \n        return '<\/p>\n\n' . $html . '\n\n<p>';\n    }\n    add_filter( 'migs_payment_gateway_modify_button', 'migs_payment_gateway_modify_button_html', 10, 2);<\/p>\n\n<h3>Shortcode<\/h3>\n\n<p>Migs Payment Gateway introduces shortcodes.<\/p>\n\n<p>If you do want to work with shortcodes.<\/p>\n\n<p><strong><a href=\"http:\/\/www.yourwwwdesign.com\/migs-payment-gateway\/#shortcodes\" title=\"Learn About Migs Payment Gateway Shortcodes\">Learn About Migs Payment Gateway Shortcodes<\/a><\/strong><\/p>\n\n<!--section=installation-->\n<p>You can download and install Migs payment gateway using the built in WordPress plugin installer. If you download Migs Payment Gateway manually, make sure it is uploaded to \"\/wp-content\/plugins\/migs_payment_gateway\/\".<\/p>\n\n<p>Activate Migs payment gateway in the \"Plugins\" admin panel using the \"Activate\" link. You'll then see a message asking you to complete the Migs payment gateway Installation Settings, which will guide you through configuring your site for Migs payment gateway.<\/p>\n\n<!--section=faq-->\n<dl>\n<dt>Can this plug-in work as shopping card?<\/dt>\n<dd><p>Nop, this plugin can be used to add buttons to your wordpress.<\/p><\/dd>\n<dt>Can I retrieve the data after returning from the payment?<\/dt>\n<dd><p>Yes, you just have to use this action: add_action('migs_payment_gateway_update_on_return', 'your_bank_transection_return', 10 , 1), your_bank_transection_return is the function that you can customize.<\/p><\/dd>\n<dt>Does this plugin support shortcodes?<\/dt>\n<dd><p>Yes, its based on shortcodes.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>1.1<\/h4>\n\n<ul>\n<li>cleared undefined variables.<\/li>\n<li>Added validation to Salts<\/li>\n<li>Cleared strict errors<\/li>\n<\/ul>\n\n<h4>1.0<\/h4>\n\n<ul>\n<li>First version.<\/li>\n<\/ul>","raw_excerpt":"Migs (Mastercard Internet Gateway Service) Payment Gateway gives you a chance to add Buy now buttons and create your own without coding knowledge, the &hellip;","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/26515","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=26515"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/gabriel82"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=26515"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=26515"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=26515"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=26515"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=26515"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=26515"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}