Skip to content

Commit

Permalink
Merge pull request #23 from razorpay/css_bug_fix
Browse files Browse the repository at this point in the history
Fixed css related bugs
  • Loading branch information
sonyy-m authored Feb 25, 2022
2 parents 4df201c + 03b42d4 commit 7cc7930
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 9 deletions.
13 changes: 6 additions & 7 deletions razorpay-payment-buttons.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* Plugin Name: Razorpay Payment Button
* Plugin URI: https://github.com/razorpay/payment-button-wordpress-plugin
* Description: Add a Razorpay Payment Button (Donate Now, Buy Now, Support Now and more) to your website and start accepting payments via Credit/Debit cards, Netbanking, UPI, Wallets, Pay later etc. instantly.
* Version: 2.4.1
* Version: 2.4.2
* Author: Razorpay
* Author URI: https://razorpay.com
*/
Expand All @@ -16,17 +16,18 @@
require_once __DIR__.'/includes/rzp-payment-buttons.php';
require_once __DIR__.'/includes/rzp-subscription-buttons.php';



use Razorpay\Api\Api;
use Razorpay\Api\Errors;

add_action('admin_enqueue_scripts', 'bootstrap_scripts_enqueue', 0);
add_action('admin_post_rzp_btn_action', 'razorpay_payment_button_action');


function bootstrap_scripts_enqueue()
function bootstrap_scripts_enqueue($admin_page)
{
if ($admin_page != 'admin_page_rzp_button_view') {
return;
}
wp_register_style('bootstrap-css', plugin_dir_url(__FILE__) . 'public/css/bootstrap.min.css',
null, null);
wp_register_style('button-css', plugin_dir_url(__FILE__) . 'public/css/button.css',
Expand Down Expand Up @@ -97,7 +98,6 @@ public function rzp_add_plugin_page()
'Razorpay Subscription Button', 'administrator','rzp_button_view',array( $this, 'rzp_button_view' ));
}


/**
* Initialize razorpay api instance
**/
Expand Down Expand Up @@ -270,8 +270,7 @@ public function rzp_button_view()

$new_button->razorpay_view_button();

}

}

}

Expand Down
8 changes: 6 additions & 2 deletions readme.txt
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
=== Razorpay Payment Button Plugin ===
Contributors: razorpay
Tags: Payment gateway, Donate button, UPI/credit/debit card, Payment plugin, India, e-commerce, education.
Tested up to: 5.9
Stable tag: 2.4.1
Tested up to: 5.9.1
Stable tag: 2.4.2
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

Expand Down Expand Up @@ -98,6 +98,10 @@ Connect your WordPress website with your Razorpay account and you're all ready t

== Changelog ==

= 2.4.2 =
* Fixed css related bugs
* Tested upto WordPress 5.9.1

= 2.4.1 =
* Updated razorpay php sdk.
* Tested upto WordPress 5.9
Expand Down

0 comments on commit 7cc7930

Please sign in to comment.