PayPal Buy Now Button - Version 1.7.1

Version Description

  • 8/20/16
  • Update - Feature - Added notice above Buy Now button if the plugin doesn't have a PayPal account set on the settings page.
  • Update - Update - Updated tested up to tag.
  • Update - Update - Updated plugin name, dropped the word easy at the beginning.
  • Update - Update - Removed demo link on settings page.
Download this release

Release Info

Developer scottpaterson
Plugin Icon 128x128 PayPal Buy Now Button
Version 1.7.1
Comparing to
See all releases

Code changes from version 1.7 to 1.7.1

Files changed (2) hide show
  1. readme.txt +23 -9
  2. wp-ecommerce-paypal.php +16 -11
readme.txt CHANGED
@@ -1,11 +1,11 @@
1
- === Easy PayPal Buy Now Button ===
2
  Contributors: scottpaterson,wp-plugin
3
  Donate link: https://wpplugin.org/donate/
4
- Tags: PayPal payment, PayPal, button, payment, online payments, pay now, buy now, ecommerce, gateway, paypal button, paypal buy now button, paypal plugin
5
  Author URI: https://wpplugin.org
6
  Requires at least: 3.0
7
- Tested up to: 4.6
8
- Stable tag: 1.7
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
@@ -29,7 +29,7 @@ This PayPal plugin works with any WordPress theme.
29
  WPPlugin is an offical PayPal Partner based in Boulder, Colorado. You can visit WPPlugin's website at [wpplugin.org](https://wpplugin.org). Various trademarks held by their respective owners.
30
 
31
 
32
- = Easy PayPal Buy Now Button Features =
33
 
34
  * PayPal Button Inserter - Just enter your items name, price, etc. and it make the Buy Now button for you
35
  * Works with any WordPress Theme
@@ -42,7 +42,7 @@ WPPlugin is an offical PayPal Partner based in Boulder, Colorado. You can visit
42
  * Choose a cancel payment url
43
  * Choose a succesful payment url
44
 
45
- > #### Easy PayPal Buy Now Button Pro
46
  > We offer a Pro version of this PayPal plugin for business owners who need more features.<br />
47
  >
48
  > * Manage PayPal buttons in a central location
@@ -77,15 +77,15 @@ WPPlugin is an offical PayPal Partner. Various trademarks held by their respecti
77
  = Automatic Installation =
78
  > 1. Sign in to your WordPress site as an administrator.
79
  > 2. In the main menu go to Plugins -> Add New.
80
- > 3. Search for Easy PayPal Button and click install.
81
  > 4. On the PayPal plugins settings page enter your PayPal account email or merchant ID.
82
- > 4. In your page or post editor, you will see a button called Easy PayPal Button to create shortcodes automatically. Or if you want to manually make a PayPal button place `[wpecpp name='Product name goes here' price='6.99']` in a post or page where you want your a PayPal button to show.
83
  > 5. That's it. You are now ready to start accepting PayPal payment on your website.
84
 
85
  == Frequently Asked Questions ==
86
 
87
  = How do I use this PayPal plugin =
88
- In your page or post editor, you will see a button called Easy PayPal Button to create shortcodes automatically.
89
  Or if you want to manually make a PayPal button place `[wpecpp name='Product name goes here' price='6.99']` in a post or page where you want your a PayPal button to show.
90
 
91
  = Can I put more then one shortcode on the same post / page? =
@@ -99,6 +99,13 @@ Yes, there is no limit to the amount of PayPal Buy Now buttons you can put on on
99
 
100
  == Changelog ==
101
 
 
 
 
 
 
 
 
102
  = 1.7 =
103
  * 3/8/16
104
  * Update - Updated tested up to tag.
@@ -178,6 +185,13 @@ Yes, there is no limit to the amount of PayPal Buy Now buttons you can put on on
178
 
179
  == Upgrade Notice ==
180
 
 
 
 
 
 
 
 
181
  = 1.7 =
182
  * 3/8/16
183
  * Update - Updated tested up to tag.
1
+ === PayPal Buy Now Button ===
2
  Contributors: scottpaterson,wp-plugin
3
  Donate link: https://wpplugin.org/donate/
4
+ Tags: PayPal, gateway, paypal button
5
  Author URI: https://wpplugin.org
6
  Requires at least: 3.0
7
+ Tested up to: 4.7
8
+ Stable tag: 1.7.1
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
29
  WPPlugin is an offical PayPal Partner based in Boulder, Colorado. You can visit WPPlugin's website at [wpplugin.org](https://wpplugin.org). Various trademarks held by their respective owners.
30
 
31
 
32
+ = PayPal Buy Now Button Features =
33
 
34
  * PayPal Button Inserter - Just enter your items name, price, etc. and it make the Buy Now button for you
35
  * Works with any WordPress Theme
42
  * Choose a cancel payment url
43
  * Choose a succesful payment url
44
 
45
+ > #### PayPal Buy Now Button Pro
46
  > We offer a Pro version of this PayPal plugin for business owners who need more features.<br />
47
  >
48
  > * Manage PayPal buttons in a central location
77
  = Automatic Installation =
78
  > 1. Sign in to your WordPress site as an administrator.
79
  > 2. In the main menu go to Plugins -> Add New.
80
+ > 3. Search for PayPal Buy Now Button and click install.
81
  > 4. On the PayPal plugins settings page enter your PayPal account email or merchant ID.
82
+ > 4. In your page or post editor, you will see a button called PayPal Button to create shortcodes automatically. Or if you want to manually make a PayPal button place `[wpecpp name='Product name goes here' price='6.99']` in a post or page where you want your a PayPal button to show.
83
  > 5. That's it. You are now ready to start accepting PayPal payment on your website.
84
 
85
  == Frequently Asked Questions ==
86
 
87
  = How do I use this PayPal plugin =
88
+ In your page or post editor, you will see a button called PayPal Button to create shortcodes automatically.
89
  Or if you want to manually make a PayPal button place `[wpecpp name='Product name goes here' price='6.99']` in a post or page where you want your a PayPal button to show.
90
 
91
  = Can I put more then one shortcode on the same post / page? =
99
 
100
  == Changelog ==
101
 
102
+ = 1.7.1 =
103
+ * 8/20/16
104
+ * Update - Feature - Added notice above Buy Now button if the plugin doesn't have a PayPal account set on the settings page.
105
+ * Update - Update - Updated tested up to tag.
106
+ * Update - Update - Updated plugin name, dropped the word easy at the beginning.
107
+ * Update - Update - Removed demo link on settings page.
108
+
109
  = 1.7 =
110
  * 3/8/16
111
  * Update - Updated tested up to tag.
185
 
186
  == Upgrade Notice ==
187
 
188
+ = 1.7.1 =
189
+ * 8/20/16
190
+ * Update - Feature - Added notice above Buy Now button if the plugin doesn't have a PayPal account set on the settings page.
191
+ * Update - Update - Updated tested up to tag.
192
+ * Update - Update - Updated plugin name, dropped the word easy at the beginning.
193
+ * Update - Update - Removed demo link on settings page.
194
+
195
  = 1.7 =
196
  * 3/8/16
197
  * Update - Updated tested up to tag.
wp-ecommerce-paypal.php CHANGED
@@ -1,17 +1,17 @@
1
  <?php
2
 
3
  /*
4
- Plugin Name: Easy PayPal Buy Now Button
5
  Description: Add a PayPal Buy Now Button to your website and start selling today. No Coding Required. Official PayPal Partner.
6
  Plugin URI: https://wpplugin.org/easy-paypal-button/
7
  Tags: PayPal payment, PayPal, button, payment, online payments, pay now, buy now, ecommerce, gateway, paypal button, paypal buy now button, paypal plugin
8
  Author: Scott Paterson
9
  Author URI: https://wpplugin.org
10
  License: GPL2
11
- Version: 1.7
12
  */
13
 
14
- /* Copyright 2014-2015 Scott Paterson
15
 
16
  This program is free software; you can redistribute it and/or modify
17
  it under the terms of the GNU General Public License as published by
@@ -40,7 +40,7 @@ if ( in_array( $pagenow, array( 'post.php', 'page.php', 'post-new.php', 'post-ed
40
 
41
  add_action('media_buttons', 'wpecpp_add_my_media_button', 20);
42
  function wpecpp_add_my_media_button() {
43
- echo '<a href="#TB_inline?width=600&height=400&inlineId=wpecpp_popup_container" title="Easy PayPal Button" id="insert-my-media" class="button thickbox">Easy PayPal Button</a>';
44
  }
45
 
46
  add_action( 'admin_footer', 'wpecpp_add_inline_popup_content' );
@@ -165,7 +165,7 @@ update_option("wpecpp_my_plugin_notice_shown", "true");
165
  add_action( "admin_menu", "wpecpp_plugin_menu" );
166
 
167
  function wpecpp_plugin_menu() {
168
- add_options_page( "Easy PayPal Button", "Easy PayPal Button", "manage_options", "wp-ecommerce-settings", "wpecpp_plugin_options" );
169
  }
170
  add_filter('plugin_action_links', 'wpecpp_myplugin_plugin_action_links', 10, 2);
171
 
@@ -213,7 +213,7 @@ wp_die( __( "You do not have sufficient permissions to access this page." ) );
213
 
214
 
215
  echo "<table width='100%'><tr><td width='70%'><br />";
216
- echo "<label style='color: #000;font-size:18pt;'><center>Easy PayPal Button Settings</center></label>";
217
  echo "<form method='post' action='".$_SERVER["REQUEST_URI"]."'>";
218
 
219
 
@@ -258,7 +258,7 @@ echo "<br />";
258
  &nbsp; Usage
259
  </div><div style="background-color:#fff;border: 1px solid #E5E5E5;padding:5px;"><br />
260
 
261
- In a page or post editor you will see a new button called "Easy PayPal Button" located above the text area beside the "Add Media" button. By using this you can
262
  create shortcodes which will show up as Buy Now button on your site.
263
  <br /><br />
264
 
@@ -446,7 +446,7 @@ WPPlugin is an offical PayPal Partner. Various trademarks held by their respecti
446
  <br />
447
 
448
  <div style="background-color:#333333;padding:8px;color:#eee;font-size:12pt;font-weight:bold;">
449
- &nbsp; Easy PayPal Button Pro
450
  </div>
451
 
452
  <div style="background-color:#fff;border: 1px solid #E5E5E5;padding:8px;">
@@ -468,8 +468,6 @@ WPPlugin is an offical PayPal Partner. Various trademarks held by their respecti
468
  <br />
469
  <center><a target='_blank' href="https://wpplugin.org/downloads/easy-paypal-buy-now-button/" class='button-primary' style='font-size: 17px;line-height: 28px;height: 32px;'>Learn More</a></center>
470
  <br />
471
- <center><a target='_blank' href="https://wpplugin.org/downloads/easy-paypal-buy-now-button/#demo" class='button-secondary'>View Demo</a></center>
472
- <br />
473
  </div>
474
 
475
  <br /><br />
@@ -485,7 +483,7 @@ WPPlugin is an offical PayPal Partner. Various trademarks held by their respecti
485
 
486
  <div class="dashicons dashicons-arrow-right" style="margin-bottom: 6px;"></div> <a target="_blank" href="https://wpplugin.org/documentation/">FAQ</a> <br />
487
 
488
- <div class="dashicons dashicons-arrow-right" style="margin-bottom: 6px;"></div> <a target="_blank" href="https://wpplugin.org/downloads/easy-paypal-buy-now-button/">Easy PayPal Button Pro</a> <br />
489
 
490
  <div class="dashicons dashicons-arrow-right" style="margin-bottom: 6px;"></div> <a target="_blank" href="https://wpplugin.org/ideas">Submit An Idea / Suggestion</a> <br /><br />
491
 
@@ -754,7 +752,14 @@ if (!isset($alignment)) { $alignment = ""; }
754
 
755
  if (!isset($note)) { $note = ""; }
756
 
 
 
757
  $output = "";
 
 
 
 
 
758
  $output .= "<div $alignment>";
759
  $output .= "<form target='$target' action='https://www.$path.com/cgi-bin/webscr' method='post'>";
760
  $output .= "<input type='hidden' name='cmd' value='_xclick' />";
1
  <?php
2
 
3
  /*
4
+ Plugin Name: PayPal Buy Now Button
5
  Description: Add a PayPal Buy Now Button to your website and start selling today. No Coding Required. Official PayPal Partner.
6
  Plugin URI: https://wpplugin.org/easy-paypal-button/
7
  Tags: PayPal payment, PayPal, button, payment, online payments, pay now, buy now, ecommerce, gateway, paypal button, paypal buy now button, paypal plugin
8
  Author: Scott Paterson
9
  Author URI: https://wpplugin.org
10
  License: GPL2
11
+ Version: 1.7.1
12
  */
13
 
14
+ /* Copyright 2014-2016 Scott Paterson
15
 
16
  This program is free software; you can redistribute it and/or modify
17
  it under the terms of the GNU General Public License as published by
40
 
41
  add_action('media_buttons', 'wpecpp_add_my_media_button', 20);
42
  function wpecpp_add_my_media_button() {
43
+ echo '<a href="#TB_inline?width=600&height=400&inlineId=wpecpp_popup_container" title="PayPal Button" id="insert-my-media" class="button thickbox">PayPal Button</a>';
44
  }
45
 
46
  add_action( 'admin_footer', 'wpecpp_add_inline_popup_content' );
165
  add_action( "admin_menu", "wpecpp_plugin_menu" );
166
 
167
  function wpecpp_plugin_menu() {
168
+ add_options_page( "PayPal Button", "PayPal Button", "manage_options", "wp-ecommerce-settings", "wpecpp_plugin_options" );
169
  }
170
  add_filter('plugin_action_links', 'wpecpp_myplugin_plugin_action_links', 10, 2);
171
 
213
 
214
 
215
  echo "<table width='100%'><tr><td width='70%'><br />";
216
+ echo "<label style='color: #000;font-size:18pt;'><center>PayPal Buy Now Button Settings</center></label>";
217
  echo "<form method='post' action='".$_SERVER["REQUEST_URI"]."'>";
218
 
219
 
258
  &nbsp; Usage
259
  </div><div style="background-color:#fff;border: 1px solid #E5E5E5;padding:5px;"><br />
260
 
261
+ In a page or post editor you will see a new button called "PayPal Button" located above the text area beside the "Add Media" button. By using this you can
262
  create shortcodes which will show up as Buy Now button on your site.
263
  <br /><br />
264
 
446
  <br />
447
 
448
  <div style="background-color:#333333;padding:8px;color:#eee;font-size:12pt;font-weight:bold;">
449
+ &nbsp; PayPal Buy Now Button Pro
450
  </div>
451
 
452
  <div style="background-color:#fff;border: 1px solid #E5E5E5;padding:8px;">
468
  <br />
469
  <center><a target='_blank' href="https://wpplugin.org/downloads/easy-paypal-buy-now-button/" class='button-primary' style='font-size: 17px;line-height: 28px;height: 32px;'>Learn More</a></center>
470
  <br />
 
 
471
  </div>
472
 
473
  <br /><br />
483
 
484
  <div class="dashicons dashicons-arrow-right" style="margin-bottom: 6px;"></div> <a target="_blank" href="https://wpplugin.org/documentation/">FAQ</a> <br />
485
 
486
+ <div class="dashicons dashicons-arrow-right" style="margin-bottom: 6px;"></div> <a target="_blank" href="https://wpplugin.org/downloads/easy-paypal-buy-now-button/">PayPal Button Pro</a> <br />
487
 
488
  <div class="dashicons dashicons-arrow-right" style="margin-bottom: 6px;"></div> <a target="_blank" href="https://wpplugin.org/ideas">Submit An Idea / Suggestion</a> <br /><br />
489
 
752
 
753
  if (!isset($note)) { $note = ""; }
754
 
755
+
756
+
757
  $output = "";
758
+
759
+ if (empty($account)) {
760
+ $output .= "(Please enter your PayPal Account or Merchant ID on the settings pages.)";
761
+ }
762
+
763
  $output .= "<div $alignment>";
764
  $output .= "<form target='$target' action='https://www.$path.com/cgi-bin/webscr' method='post'>";
765
  $output .= "<input type='hidden' name='cmd' value='_xclick' />";