From 6ce090e50fb0c844bc10dad7d8bbfaf81303f99d Mon Sep 17 00:00:00 2001 From: ChetanGN <chetan.naik@razorpay.com> Date: Thu, 25 Apr 2024 22:22:57 +0530 Subject: [PATCH] Reverted magic banner changes --- readme.txt | 5 ++++- woo-razorpay.php | 13 ++----------- 2 files changed, 6 insertions(+), 12 deletions(-) diff --git a/readme.txt b/readme.txt index 2024b5ce..6261a3e8 100644 --- a/readme.txt +++ b/readme.txt @@ -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 @@ -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. diff --git a/woo-razorpay.php b/woo-razorpay.php index 43e99784..677fb7d9 100644 --- a/woo-razorpay.php +++ b/woo-razorpay.php @@ -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 @@ -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'); @@ -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';