PayPal Buy Now Button - Version 1.6.7

Version Description

  • New Feature - added PayPal payment action option
  • Fixed bug - plugin descrition not showing
  • Added text - more detail about cancel and return URL
  • Added text - pro demo link
Download this release

Release Info

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

Code changes from version 1.6.5 to 1.6.7

Files changed (2) hide show
  1. readme.txt +21 -2
  2. wp-ecommerce-paypal.php +28 -17
readme.txt CHANGED
@@ -4,8 +4,8 @@ Donate link: https://wpplugin.org/donate/
4
  Tags: PayPal payment, PayPal, button, payment, online payments, Stripe, Super Stripe, Stripe checkout, pay now, paypal plugin for wordpress, button, paypal button, payment form, pay online, paypal buy now, ecommerce, paypal plugin, shortcode, online, payments, payments for wordpress, paypal for wordpress, paypal donation, paypal transfer, payment processing, paypal widget, wp paypal, purchase button, money, invoice, invoicing, payment collect, secure, process credit cards, paypal integration, gateway, stripe, authorize, shopping cart, cart, shopping, shop
5
  Author URI: https://wpplugin.org
6
  Requires at least: 3.0
7
- Tested up to: 4.1.1
8
- Stable tag: 1.6.5
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
@@ -37,6 +37,7 @@ WP Plugin is an offical PayPal Partner based in Boulder, Colorado. You can visit
37
  * Built in support 25 currencies
38
  * Choose from 4 different PayPal button designs
39
  * PayPal testing through SandBox
 
40
  * Choose how the PayPal window opens
41
  * Choose a cancel payment url
42
  * Choose a succesful payment url
@@ -90,6 +91,15 @@ Yes, there is no limit to the amount you can put on one post / page, or your ent
90
 
91
  == Changelog ==
92
 
 
 
 
 
 
 
 
 
 
93
  = 1.6.5 =
94
  * Small fix - spelling
95
 
@@ -155,6 +165,15 @@ Yes, there is no limit to the amount you can put on one post / page, or your ent
155
 
156
  == Upgrade Notice ==
157
 
 
 
 
 
 
 
 
 
 
158
  = 1.6.5 =
159
  Small fix - spelling
160
 
4
  Tags: PayPal payment, PayPal, button, payment, online payments, Stripe, Super Stripe, Stripe checkout, pay now, paypal plugin for wordpress, button, paypal button, payment form, pay online, paypal buy now, ecommerce, paypal plugin, shortcode, online, payments, payments for wordpress, paypal for wordpress, paypal donation, paypal transfer, payment processing, paypal widget, wp paypal, purchase button, money, invoice, invoicing, payment collect, secure, process credit cards, paypal integration, gateway, stripe, authorize, shopping cart, cart, shopping, shop
5
  Author URI: https://wpplugin.org
6
  Requires at least: 3.0
7
+ Tested up to: 4.2
8
+ Stable tag: 1.6.7
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
37
  * Built in support 25 currencies
38
  * Choose from 4 different PayPal button designs
39
  * PayPal testing through SandBox
40
+ * PayPal authorization mode - sale or authorize
41
  * Choose how the PayPal window opens
42
  * Choose a cancel payment url
43
  * Choose a succesful payment url
91
 
92
  == Changelog ==
93
 
94
+ = 1.6.7 =
95
+ * New Feature - added PayPal payment action option
96
+ * Fixed bug - plugin descrition not showing
97
+ * Added text - more detail about cancel and return URL
98
+ * Added text - pro demo link
99
+
100
+ = 1.6.6 =
101
+ * Bug fix
102
+
103
  = 1.6.5 =
104
  * Small fix - spelling
105
 
165
 
166
  == Upgrade Notice ==
167
 
168
+ = 1.6.7 =
169
+ New Feature - added PayPal payment action option
170
+ Fixed bug - plugin descrition not showing
171
+ Added text - more detail about cancel and return URL
172
+ Added text - pro demo link
173
+
174
+ = 1.6.6 =
175
+ Bug fix
176
+
177
  = 1.6.5 =
178
  Small fix - spelling
179
 
wp-ecommerce-paypal.php CHANGED
@@ -2,12 +2,13 @@
2
 
3
  /*
4
  Plugin Name: Easy PayPal Buy Now Button
 
5
  Plugin URI: https://wpplugin.org/easy-paypal-button/
6
  Tags: PayPal payment, PayPal, button, payment, online payments, Stripe, Super Stripe, Stripe checkout, pay now, paypal plugin for wordpress, button, paypal button, payment form, pay online, paypal buy now, ecommerce, paypal plugin, shortcode, online, payments, payments for wordpress, paypal for wordpress, paypal donation, paypal transfer, payment processing, paypal widget, wp paypal, purchase button, money, invoice, invoicing, payment collect, secure, process credit cards, paypal integration, gateway, stripe, authorize, shopping cart, cart, shopping, shop
7
  Author: Scott Paterson
8
  Author URI: https://wpplugin.org
9
  License: GPL2
10
- Version: 1.6.5
11
  */
12
 
13
  /* Copyright 2014-2015 Scott Paterson
@@ -127,6 +128,7 @@ $wpecpp_settingsoptions = array(
127
  'upload_image' => '',
128
  'showprice' => '2',
129
  'showname' => '2',
 
130
  );
131
 
132
  add_option("wpecpp_settingsoptions", $wpecpp_settingsoptions);
@@ -227,6 +229,7 @@ $options['size'] = $_POST['size'];
227
  $options['opens'] = $_POST['opens'];
228
  $options['cancel'] = $_POST['cancel'];
229
  $options['return'] = $_POST['return'];
 
230
 
231
 
232
  update_option("wpecpp_settingsoptions", $options);
@@ -352,6 +355,10 @@ echo "<b>Sandbox Mode:</b>";
352
  echo "&nbsp; &nbsp; <input "; if ($value['mode'] == "1") { echo "checked='checked'"; } echo " type='radio' name='mode' value='1'>On (Sandbox mode)";
353
  echo "&nbsp; &nbsp; <input "; if ($value['mode'] == "2") { echo "checked='checked'"; } echo " type='radio' name='mode' value='2'>Off (Live mode)";
354
 
 
 
 
 
355
  echo "<br /><br /></div>";
356
 
357
 
@@ -398,6 +405,8 @@ echo "<b>Return URL: </b>";
398
  echo "<input type='text' name='return' value='".$value['return']."'> Optional <br />";
399
  echo "If the customer goes to PayPal and successfully pays, where are they redirected to after. Example: $siteurl/thankyou. Max length: 1,024. <br /><br />";
400
 
 
 
401
 
402
  ?>
403
  <br /><br /></div>
@@ -445,16 +454,21 @@ WP Plugin is an offical PayPal Partner. Various trademarks held by their respect
445
  <center><label style="font-size:14pt;">With the Pro version you'll <br /> be able to: </label></center>
446
 
447
  <br />
 
 
448
  <div class="dashicons dashicons-yes" style="margin-bottom: 6px;"></div> Charge Tax & Shipping <br />
449
  <div class="dashicons dashicons-yes" style="margin-bottom: 6px;"></div> Add Item ID and SKU<br />
450
  <div class="dashicons dashicons-yes" style="margin-bottom: 6px;"></div> Add Discounts <br />
451
- <div class="dashicons dashicons-yes" style="margin-bottom: 6px;"></div> Add Dropdown Menus<br />
452
  <div class="dashicons dashicons-yes" style="margin-bottom: 6px;"></div> Custom Button Image<br />
 
453
  <div class="dashicons dashicons-yes" style="margin-bottom: 6px;"></div> Further Plugin Development <br />
454
 
455
  <br />
456
  <center><a target='_blank' href="https://wpplugin.org/easy-paypal-button/" class='button-primary' style='font-size: 17px;line-height: 28px;height: 32px;'>Learn More</a></center>
457
  <br />
 
 
458
  </div>
459
 
460
  <br /><br />
@@ -470,25 +484,12 @@ WP Plugin is an offical PayPal Partner. Various trademarks held by their respect
470
 
471
  <div class="dashicons dashicons-arrow-right" style="margin-bottom: 6px;"></div> <a target="_blank" href="https://wpplugin.org/easy-paypal-button-support/">FAQ</a> <br />
472
 
473
- <div class="dashicons dashicons-arrow-right" style="margin-bottom: 6px;"></div> <a target="_blank" href="https://wpplugin.org/easy-paypal-button/">Easy PayPal Button Pro</a> <br /><br />
474
 
475
- </div>
476
-
477
- <br /><br />
478
 
479
- <div style="background-color:#333333;padding:8px;color:#eee;font-size:12pt;font-weight:bold;">
480
- &nbsp; Like this Plugin?
481
  </div>
482
 
483
- <div style="background-color:#fff;border: 1px solid #E5E5E5;"><br />
484
-
485
- <center><a target='_blank' href="https://wordpress.org/plugins/wp-ecommerce-paypal/" class='button-primary' style='font-size: 17px;line-height: 28px;height: 32px;'>Leave a Review</a></center>
486
- <br />
487
-
488
- </div>
489
-
490
-
491
-
492
  </td><td width='1%'>
493
 
494
  </td></tr></table>
@@ -529,6 +530,15 @@ $account = $value['liveaccount'];
529
  $path = "paypal";
530
  }
531
 
 
 
 
 
 
 
 
 
 
532
  // currency
533
  if ($value['currency'] == "1") { $currency = "AUD"; }
534
  if ($value['currency'] == "2") { $currency = "BRL"; }
@@ -745,6 +755,7 @@ $output .= "<input type='hidden' name='currency_code' value='$currency' />";
745
  $output .= "<input type='hidden' name='amount' value='". $atts['price'] ."' />";
746
  $output .= "<input type='hidden' name='lc' value='$language'>";
747
  $output .= "<input type='hidden' name='no_note' value='$note'>";
 
748
  $output .= "<input type='hidden' name='return' value='". $value['return'] ."' />";
749
  $output .= "<input type='hidden' name='bn' value='WPPlugin_SP'>";
750
  $output .= "<input type='hidden' name='cancel_return' value='". $value['cancel'] ."' />";
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, Stripe, Super Stripe, Stripe checkout, pay now, paypal plugin for wordpress, button, paypal button, payment form, pay online, paypal buy now, ecommerce, paypal plugin, shortcode, online, payments, payments for wordpress, paypal for wordpress, paypal donation, paypal transfer, payment processing, paypal widget, wp paypal, purchase button, money, invoice, invoicing, payment collect, secure, process credit cards, paypal integration, gateway, stripe, authorize, shopping cart, cart, shopping, shop
8
  Author: Scott Paterson
9
  Author URI: https://wpplugin.org
10
  License: GPL2
11
+ Version: 1.6.7
12
  */
13
 
14
  /* Copyright 2014-2015 Scott Paterson
128
  'upload_image' => '',
129
  'showprice' => '2',
130
  'showname' => '2',
131
+ 'paymentaction' => '1'
132
  );
133
 
134
  add_option("wpecpp_settingsoptions", $wpecpp_settingsoptions);
229
  $options['opens'] = $_POST['opens'];
230
  $options['cancel'] = $_POST['cancel'];
231
  $options['return'] = $_POST['return'];
232
+ $options['paymentaction'] = $_POST['paymentaction'];
233
 
234
 
235
  update_option("wpecpp_settingsoptions", $options);
355
  echo "&nbsp; &nbsp; <input "; if ($value['mode'] == "1") { echo "checked='checked'"; } echo " type='radio' name='mode' value='1'>On (Sandbox mode)";
356
  echo "&nbsp; &nbsp; <input "; if ($value['mode'] == "2") { echo "checked='checked'"; } echo " type='radio' name='mode' value='2'>Off (Live mode)";
357
 
358
+ echo "<br /><br /><b>Payment Action:</b>";
359
+ echo "&nbsp; &nbsp; <input "; if ($value['paymentaction'] == "1") { echo "checked='checked'"; } echo " type='radio' name='paymentaction' value='1'>Sale (Default)";
360
+ echo "&nbsp; &nbsp; <input "; if ($value['paymentaction'] == "2") { echo "checked='checked'"; } echo " type='radio' name='paymentaction' value='2'>Authorize (Learn more <a target='_blank' href='https://developer.paypal.com/docs/classic/paypal-payments-standard/integration-guide/authcapture/'>here</a>)";
361
+
362
  echo "<br /><br /></div>";
363
 
364
 
405
  echo "<input type='text' name='return' value='".$value['return']."'> Optional <br />";
406
  echo "If the customer goes to PayPal and successfully pays, where are they redirected to after. Example: $siteurl/thankyou. Max length: 1,024. <br /><br />";
407
 
408
+ echo "Note: The Cancel and Return pages are not automatically created; /cancel and /thankyou are just possible example page names.";
409
+
410
 
411
  ?>
412
  <br /><br /></div>
454
  <center><label style="font-size:14pt;">With the Pro version you'll <br /> be able to: </label></center>
455
 
456
  <br />
457
+ <div class="dashicons dashicons-yes" style="margin-bottom: 6px;"></div> Add Dropdown Menus<br />
458
+ <div class="dashicons dashicons-yes" style="margin-bottom: 6px;"></div> Add Text Boxes<br />
459
  <div class="dashicons dashicons-yes" style="margin-bottom: 6px;"></div> Charge Tax & Shipping <br />
460
  <div class="dashicons dashicons-yes" style="margin-bottom: 6px;"></div> Add Item ID and SKU<br />
461
  <div class="dashicons dashicons-yes" style="margin-bottom: 6px;"></div> Add Discounts <br />
462
+ <div class="dashicons dashicons-yes" style="margin-bottom: 6px;"></div> Change Quantity <br />
463
  <div class="dashicons dashicons-yes" style="margin-bottom: 6px;"></div> Custom Button Image<br />
464
+ <div class="dashicons dashicons-yes" style="margin-bottom: 6px;"></div> And More<br />
465
  <div class="dashicons dashicons-yes" style="margin-bottom: 6px;"></div> Further Plugin Development <br />
466
 
467
  <br />
468
  <center><a target='_blank' href="https://wpplugin.org/easy-paypal-button/" class='button-primary' style='font-size: 17px;line-height: 28px;height: 32px;'>Learn More</a></center>
469
  <br />
470
+ <center><a target='_blank' href="https://wpplugin.org/easy-paypal-button#demo" class='button-secondary'>View Demo</a></center>
471
+ <br />
472
  </div>
473
 
474
  <br /><br />
484
 
485
  <div class="dashicons dashicons-arrow-right" style="margin-bottom: 6px;"></div> <a target="_blank" href="https://wpplugin.org/easy-paypal-button-support/">FAQ</a> <br />
486
 
487
+ <div class="dashicons dashicons-arrow-right" style="margin-bottom: 6px;"></div> <a target="_blank" href="https://wpplugin.org/easy-paypal-button/">Easy PayPal Button Pro</a> <br />
488
 
489
+ <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 />
 
 
490
 
 
 
491
  </div>
492
 
 
 
 
 
 
 
 
 
 
493
  </td><td width='1%'>
494
 
495
  </td></tr></table>
530
  $path = "paypal";
531
  }
532
 
533
+ // payment action
534
+ if ($value['paymentaction'] == "1") {
535
+ $paymentaction = "sale";
536
+ } elseif ($value['paymentaction'] == "2") {
537
+ $paymentaction = "authorization";
538
+ } else {
539
+ $paymentaction = "sale";
540
+ }
541
+
542
  // currency
543
  if ($value['currency'] == "1") { $currency = "AUD"; }
544
  if ($value['currency'] == "2") { $currency = "BRL"; }
755
  $output .= "<input type='hidden' name='amount' value='". $atts['price'] ."' />";
756
  $output .= "<input type='hidden' name='lc' value='$language'>";
757
  $output .= "<input type='hidden' name='no_note' value='$note'>";
758
+ $output .= "<input type='hidden' name='paymentaction' value='$paymentaction'>";
759
  $output .= "<input type='hidden' name='return' value='". $value['return'] ."' />";
760
  $output .= "<input type='hidden' name='bn' value='WPPlugin_SP'>";
761
  $output .= "<input type='hidden' name='cancel_return' value='". $value['cancel'] ."' />";