Skip to content

Commit

Permalink
Merge pull request #551 from razorpay/revert_magic_banner
Browse files Browse the repository at this point in the history
[PLUGIN1CC-3639]Reverted magic banner changes
  • Loading branch information
ChetanGN authored Apr 25, 2024
2 parents 43bfc56 + 6ce090e commit d794ab7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 12 deletions.
5 changes: 4 additions & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Contributors: razorpay
Tags: razorpay, payments, india, woocommerce, curlec, malaysia, ecommerce, international, cross border
Requires at least: 3.9.2
Tested up to: 6.4.2
Stable tag: 4.6.3
Stable tag: 4.6.4
Requires PHP: 7.0
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Expand Down Expand Up @@ -69,6 +69,9 @@ Razorpay is available for Store Owners and Merchants in

== Changelog ==

= 4.6.4 =
* Reverted, Magic checkout banner on woocommerce dashboard.

= 4.6.3 =
* Added, Magic checkout banner on woocommerce dashboard.
* Reverted, Instand Refund.
Expand Down
13 changes: 2 additions & 11 deletions woo-razorpay.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
* Plugin Name: 1 Razorpay: Signup for FREE PG
* Plugin URI: https://razorpay.com
* Description: Razorpay Payment Gateway Integration for WooCommerce.Razorpay Welcome Back Offer: New to Razorpay? Sign up to enjoy FREE payments* of INR 2 lakh till March 31st! Transact before January 10th to grab the offer.
* Version: 4.6.3
* Stable tag: 4.6.3
* Version: 4.6.4
* Stable tag: 4.6.4
* Author: Team Razorpay
* WC tested up to: 7.9.0
* Author URI: https://razorpay.com
Expand Down Expand Up @@ -335,8 +335,6 @@ protected function initHooks()
{
add_action('woocommerce_receipt_' . $this->id, array($this, 'receipt_page'));

add_action('admin_notices', array($this, 'add_magic_banner'));

add_action('woocommerce_api_' . $this->id, array($this, 'check_razorpay_response'));

$cb = array($this, 'process_admin_options');
Expand All @@ -363,13 +361,6 @@ protected function initHooks()
add_filter( 'woocommerce_thankyou_order_received_text', array($this, 'getCustomOrdercreationMessage'), 20, 2 );
}

// Magic checkout admin banner has been added.
public function add_magic_banner()
{
echo '<div class="notice notice-info is-dismissible">
<a href="https://razorpay.com/magic/?utm_source=WooCommerce&utm_medium=banner" target="_blank"><img src="https://cdn.razorpay.com/static/assets/magic-checkout/platforms/wooc_banner.png" style="width: 100%;"/></a></div>';
}

public function init_form_fields()
{
$webhookUrl = esc_url(admin_url('admin-post.php')) . '?action=rzp_wc_webhook';
Expand Down

0 comments on commit d794ab7

Please sign in to comment.