PayPal Buy Now Button - Version 1.2

Version Description

  • Stying and Layout. Removed license manager to comply with wordpress.org terms. Changed Plugin URI links.
Download this release

Release Info

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

Code changes from version 1.1.7 to 1.2

Files changed (4) hide show
  1. banner-772x250.png +0 -0
  2. manager.php +0 -67
  3. readme.txt +13 -11
  4. wp-ecommerce-paypal.php +12 -193
banner-772x250.png ADDED
Binary file
manager.php DELETED
@@ -1,67 +0,0 @@
1
- <?php
2
-
3
- if (!defined('ABSPATH')) exit; // Exit if accessed directly
4
-
5
- define('PLICENSE_PRODUCT_NAME', 'wpecpp');
6
-
7
- if (!class_exists('wpecpp_PLicense_Activation')) {
8
- class wpecpp_PLicense_Activation {
9
-
10
- function is_plicense_valid() {
11
- $plicense_key = get_option('plicsence_key'.PLICENSE_PRODUCT_NAME);
12
- if (!$plicense_key) return false;
13
-
14
- if (false === ($value = get_transient('plicense_state'))) {
15
- if ($this->wpecpp_plicense_valid_check($plicense_key)) {
16
- set_transient('plicense_state', 1, 30 * MINUTE_IN_SECONDS);
17
- return true;
18
- }
19
- }
20
- else return true;
21
-
22
- return false;
23
- }
24
-
25
- }
26
- }
27
-
28
- if(isset($_POST['wpecpp_plicsence_key'])) {
29
- global $wpecpp_PLicense_Activation;
30
- $license = $_POST['wpecpp_plicsence_key'];
31
-
32
- $product = "WP eCommerce PayPal Pro";
33
-
34
- $serverurl = "https://wpplugin.org/wp-content/plugins/product-licensing-system/verify.php";
35
-
36
- $response = wp_remote_post($serverurl, array(
37
- 'method' => 'POST',
38
- 'timeout' => 20,
39
- 'redirection' => 5,
40
- 'httpversion' => '1.0',
41
- 'blocking' => true,
42
- 'headers' => array(),
43
- 'body' => array( 'domain' => $_SERVER['SERVER_NAME'], 'licensekey' => $license, 'product' => $product ),
44
- 'cookies' => array()
45
- )
46
- );
47
-
48
- if (is_wp_error($response))
49
- $response = '';
50
-
51
- $result = json_decode($response['body'], true);
52
-
53
- //print_r ($result);
54
-
55
- //avaiable 'valid' value is true, false, pending, expired
56
- update_option('wpecpp_plicsence_key_status', $result['valid']);
57
- update_option('wpecpp_plicsence_key'.PLICENSE_PRODUCT_NAME, $license);
58
-
59
- if($result['valid'] == "true")
60
- return "1";
61
- else {
62
- delete_transient('plicense_state');
63
- }
64
- return "2";
65
- }
66
-
67
- ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
readme.txt CHANGED
@@ -1,11 +1,11 @@
1
  === Easy PayPal Button ===
2
  Contributors: scottpaterson
3
- Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=A7FUMHD643QZ6
4
- Tags: ecommerce, paypal, button, buy now, shortcode, buy now button, paypal button, paypal buy now button, paypal plugin, paypal plugin for wordpress
5
  Author URI: https://wpplugin.org
6
  Requires at least: 3.0
7
  Tested up to: 4.1
8
- Stable tag: 1.1.7
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
@@ -18,7 +18,7 @@ Convert your website to a eCommerce website and start selling your product in ju
18
 
19
  * Simply install the plugin, enter your PayPal business information on the settings page, and place the shortcode anywhere on your site where you want the PayPal button to show.
20
 
21
- * WP eCommerce PayPal works with any WordPress theme.
22
 
23
 
24
  = Easy PayPal Button Features =
@@ -50,7 +50,7 @@ Convert your website to a eCommerce website and start selling your product in ju
50
  > Add a Custom Button Image<br />
51
  >
52
  >
53
- > [Get Easy PayPal Button Pro >>](https://wpplugin.org/wp-ecommerce-paypal/)
54
 
55
 
56
  Trademarks held by their respective owners. This plugin is not affiliated wtih PayPal.
@@ -60,12 +60,7 @@ Trademarks held by their respective owners. This plugin is not affiliated wtih P
60
  = Automatic Installation =
61
  > 1. Sign in to your WordPress site as an administrator.
62
  > 2. In the main menu go to Plugins -> Add New.
63
- > 3. Search for WP eCommerce PayPal and click install.
64
-
65
- = Manual Installation =
66
- > 1. Upload `wp-ecommerce-paypal.zip` to the `/wp-content/plugins/` directory
67
- > 2. Activate the plugin through the 'Plugins' menu in WordPress
68
- > 3. In your sidebar, select 'Settings -> WP eCommerce Paypal' and configure the settings.
69
  > 4. Place `[wpecpp name='Product name goes here' price='6.99']` in a post or page where you want your a PayPal button to show.
70
 
71
  == Frequently Asked Questions ==
@@ -83,6 +78,9 @@ Yes, there is no limit to the amount you can put on one post / page, or your ent
83
 
84
  == Changelog ==
85
 
 
 
 
86
  = 1.1.7 =
87
  * Currency bug
88
 
@@ -109,6 +107,10 @@ Yes, there is no limit to the amount you can put on one post / page, or your ent
109
 
110
  == Upgrade Notice ==
111
 
 
 
 
 
112
  = 1.1.7 =
113
  Currency bug
114
 
1
  === Easy PayPal Button ===
2
  Contributors: scottpaterson
3
+ Donate link: https://wpplugin.org/donate/
4
+ Tags: ecommerce, paypal, button, buy now, shortcode, buy now button, paypal button, paypal buy now button, paypal plugin, paypal plugin for wordpress, easy
5
  Author URI: https://wpplugin.org
6
  Requires at least: 3.0
7
  Tested up to: 4.1
8
+ Stable tag: 1.2
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
18
 
19
  * Simply install the plugin, enter your PayPal business information on the settings page, and place the shortcode anywhere on your site where you want the PayPal button to show.
20
 
21
+ * Easy PayPal Button works with any WordPress theme.
22
 
23
 
24
  = Easy PayPal Button Features =
50
  > Add a Custom Button Image<br />
51
  >
52
  >
53
+ > [Get Easy PayPal Button Pro >>](https://wpplugin.org/easy-paypal-button/)
54
 
55
 
56
  Trademarks held by their respective owners. This plugin is not affiliated wtih PayPal.
60
  = Automatic Installation =
61
  > 1. Sign in to your WordPress site as an administrator.
62
  > 2. In the main menu go to Plugins -> Add New.
63
+ > 3. Search for Easy PayPal Button and click install.
 
 
 
 
 
64
  > 4. Place `[wpecpp name='Product name goes here' price='6.99']` in a post or page where you want your a PayPal button to show.
65
 
66
  == Frequently Asked Questions ==
78
 
79
  == Changelog ==
80
 
81
+ = 1.2 =
82
+ * Stying and Layout. Removed license manager to comply with wordpress.org terms. Changed Plugin URI links.
83
+
84
  = 1.1.7 =
85
  * Currency bug
86
 
107
 
108
  == Upgrade Notice ==
109
 
110
+
111
+ = 1.2 =
112
+ Stying and Layout. Removed license manager to comply with wordpress.org terms. Changed Plugin URI links.
113
+
114
  = 1.1.7 =
115
  Currency bug
116
 
wp-ecommerce-paypal.php CHANGED
@@ -1,13 +1,13 @@
1
  <?php
2
 
3
  /*
4
- Plugin Name: WP eCommerce PayPal
5
- Plugin URI: https://wpplugin.org/wp-ecommerce-paypal
6
  Description: A simple and easy way to integrate PayPal into your WordPress website.
7
  Author: Scott Paterson
8
  Author URI: https://wpplugin.org
9
  License: GPL2
10
- Version: 1.1.7
11
  */
12
 
13
  /* Copyright 2014-2015 Scott Paterson
@@ -109,7 +109,7 @@ update_option("wpecpp_my_plugin_notice_shown", "true");
109
  add_action( "admin_menu", "wpecpp_plugin_menu" );
110
 
111
  function wpecpp_plugin_menu() {
112
- add_options_page( "WP eCommerce PayPal", "WP eCommerce PayPal", "manage_options", "wp-ecommerce-settings", "wpecpp_plugin_options" );
113
  }
114
  add_filter('plugin_action_links', 'wpecpp_myplugin_plugin_action_links', 10, 2);
115
 
@@ -131,13 +131,6 @@ wp_die( __( "You do not have sufficient permissions to access this page." ) );
131
  }
132
 
133
 
134
- // manager
135
- include_once ('manager.php');
136
- $kstatus = get_option('wpecpp_plicsence_key_status');
137
- if (empty($kstatus)) { $kstatus = "false"; }
138
-
139
-
140
-
141
 
142
 
143
  // settings page
@@ -146,7 +139,7 @@ if (empty($kstatus)) { $kstatus = "false"; }
146
 
147
 
148
  echo "<table width='100%'><tr><td width='65%'>";
149
- echo "<h1><label style='color: #0074A2;'>WP eCommerce PayPal Settings</label></h1>";
150
  echo "<form method='post' action='".$_SERVER["REQUEST_URI"]."'>";
151
 
152
 
@@ -197,18 +190,6 @@ echo "<br /><hr>";
197
  To use this plugin, put the shortcode <b>[wpecpp name='example product name' price='6.99']</b> in your page or post anywhere you want the PayPal button to show.
198
  You can put the shortcode as many times as you want in a post or page, there is no limit.
199
 
200
- <?php
201
- if ($kstatus == "true") {
202
- echo "<br /><br />";
203
- echo "- To add a fixed discount amount to an item, add <b>discount_amount</b> to this shortcode - Example for $1.50 off: <br /><b>[wpecpp name='example product name' price='6.99' discount_amount='1.50']</b><br /><br />";
204
- echo "- To add a percentage discount amount to an item, add <b>discount_rate</b> to this shortcode - Example for 5% discount: <br /><b>[wpecpp name='example product name' price='6.99' discount_rate ='5']</b><br /><br />";
205
- //echo "- To add an items weight, add <b>weight</b> to this shortcode - Example for 5 lbs weight: <br /><b>[wpecpp name='example product name' price='6.99' weight ='5']</b> <br />Change units in the settings below. You can go to two decimal points.";
206
- echo "- To add a shipping and handling charge to an item, add <b>shipping</b> to this shortcode - Example for $5.00 shipping <br /> and handling fee: <b>[wpecpp name='example product name' price='6.99' shipping ='5']</b><br /><br />";
207
- echo "- To add an item id / SKU to an item, add <b>item_id</b> to this shortcode - Example for item id 1234 <br /> and handling fee: <b>[wpecpp name='example product name' price='6.99' item_id ='1234']</b><br /><br />";
208
- echo "- To set a Buy Now button size per button, add <b>size</b> to this shortcode. Use 1 for small, 2 for normal, and 3 for normal with credit card logos. - Example for size small: <b>[wpecpp name='example product name' price='6.99' size='1']</b><br /><br />";
209
- }
210
- ?>
211
-
212
 
213
  <br /><br /><hr>
214
 
@@ -296,27 +277,6 @@ echo "<br /><br /><hr>";
296
 
297
 
298
 
299
- if ($kstatus == "true") {
300
-
301
- echo "<h3><label style='color: #0074A2;'>Tax Settings</label></h3>";
302
-
303
- echo "<b>Tax Fixed Amount: </b>";
304
- echo "<input type='text' name='tax' value='".$value['tax']."'> Optional <br />";
305
- echo "Set a fixed amount, for example for $0.70 tax, enter .70 <br /><br />";
306
-
307
-
308
- echo "<b>Tax Rate (Percentage) Amount: </b>";
309
- echo "<input type='text' name='tax_rate' value='".$value['tax_rate']."'> Optional <br />";
310
- echo "Set a tax rate, for example for 2.5% tax, enter 2.5 <br /><br />";
311
-
312
-
313
- echo "<hr>";
314
-
315
-
316
- }
317
-
318
-
319
-
320
 
321
  echo "<h3><label style='color: #0074A2;'>Other</label></h3>";
322
 
@@ -324,98 +284,18 @@ echo "<table><tr><td valign='top'>";
324
 
325
 
326
 
327
- if ($kstatus == "true") {
328
- echo "<b>Show Price beside button:</b></td>";
329
- echo "<td><input "; if ($value['showprice'] == "1") { echo "checked='checked'"; } echo " type='radio' name='showprice' value='1'>Show</td>";
330
- echo "<td><input "; if ($value['showprice'] == "2") { echo "checked='checked'"; } echo " type='radio' name='showprice' value='2'>Hide</td></tr><tr><td>";
331
-
332
- echo "<b>Show Name beside button:</b></td>";
333
- echo "<td><input "; if ($value['showname'] == "1") { echo "checked='checked'"; } echo " type='radio' name='showname' value='1'>Show</td>";
334
- echo "<td><input "; if ($value['showname'] == "2") { echo "checked='checked'"; } echo " type='radio' name='showname' value='2'>Hide</td></tr><tr><td>";
335
- }
336
-
337
-
338
-
339
 
340
  echo "<b>Button Size and type:</b></td><td valign='top' style='text-align: center;'>";
341
  echo "<input "; if ($value['size'] == "1") { echo "checked='checked'"; } echo " type='radio' name='size' value='1'>Small <br /><img src='https://www.paypalobjects.com/en_US/i/btn/btn_buynow_SM.gif'></td><td valign='top' style='text-align: center;'>";
342
  echo "<input "; if ($value['size'] == "2") { echo "checked='checked'"; } echo " type='radio' name='size' value='2'>Big <br /><img src='https://www.paypalobjects.com/en_US/i/btn/btn_buynow_LG.gif'></td><td valign='top' style='text-align: center;'>";
343
  echo "<input "; if ($value['size'] == "3") { echo "checked='checked'"; } echo " type='radio' name='size' value='3'>Big with credit cards <br /><img src='https://www.paypalobjects.com/en_US/i/btn/btn_buynowCC_LG.gif'></td><td valign='top' style='text-align: center;'>";
344
 
345
- if ($kstatus == "true") {
346
- echo "<input "; if ($value['size'] == "4") { echo "checked='checked'"; } echo " type='radio' name='size' value='4'>";
347
- ?>
348
- Custom Image:
349
- <input id="upload_image" type="text" size="1" name="upload_image" value="<?php echo $value['upload_image']; ?>" style="display: none;">
350
- <input id="upload_image_button" type="button" value="Upload Image">
351
-
352
-
353
- <?php
354
-
355
- function wpecpp_my_admin_scripts() {
356
- wp_enqueue_script('media-upload');
357
- wp_enqueue_script('thickbox');
358
- wp_register_script('my-upload', WP_PLUGIN_URL.'/my-script.js', array('jquery','media-upload','thickbox'));
359
- wp_enqueue_script('my-upload');
360
- }
361
-
362
- function wpecpp_my_admin_styles() {
363
- wp_enqueue_style('thickbox');
364
- }
365
-
366
- if (isset($_GET['page']) && $_GET['page'] == 'my_plugin_page') {
367
- add_action('admin_print_scripts', 'wpecpp_my_admin_scripts');
368
- add_action('admin_print_styles', 'wpecpp_my_admin_styles');
369
- }
370
-
371
- ?>
372
-
373
- <script>
374
- jQuery(document).ready(function() {
375
-
376
- jQuery('#upload_image_button').click(function() {
377
- formfield = jQuery('#upload_image').attr('name');
378
- tb_show('', 'media-upload.php?type=image&amp;TB_iframe=true');
379
- return false;
380
- });
381
-
382
- window.send_to_editor = function(html) {
383
- imgurl = jQuery('img',html).attr('src');
384
- jQuery('#upload_image').val(imgurl);
385
- tb_remove();
386
- }
387
-
388
- })
389
- </script>
390
-
391
-
392
-
393
-
394
-
395
-
396
-
397
-
398
-
399
-
400
-
401
-
402
-
403
- <?php
404
- }
405
 
406
  echo "</td></tr><tr><td><b>PayPal opens in:</b></td>";
407
  echo "<td><input "; if ($value['opens'] == "1") { echo "checked='checked'"; } echo " type='radio' name='opens' value='1'>Same page</td>";
408
  echo "<td><input "; if ($value['opens'] == "2") { echo "checked='checked'"; } echo " type='radio' name='opens' value='2'>New page</td></tr>";
409
 
410
- if ($kstatus == "true") {
411
- echo "<tr><td><b>Customer custom note field in PayPal:</b></td>";
412
- echo "<td><input "; if ($value['note'] == "1") { echo "checked='checked'"; } echo " type='radio' name='note' value='1'>Show</td>";
413
- echo "<td><input "; if ($value['note'] == "2") { echo "checked='checked'"; } echo " type='radio' name='note' value='2'>Hide</td></tr>";
414
 
415
- //echo "<tr><td><b>Shipping Weight Unit:</b></td>";
416
- //echo "<td><input "; if ($value['weight_unit'] == "1") { echo "checked='checked'"; } echo " type='radio' name='weight_unit' value='1'>Lbs - Pounds</td>";
417
- //echo "<td><input "; if ($value['weight_unit'] == "2") { echo "checked='checked'"; } echo " type='radio' name='weight_unit' value='2'>Kgs - Kilograms</td></tr>";
418
- }
419
 
420
  echo "</table><br /><br />";
421
 
@@ -431,11 +311,6 @@ echo "<b>Return URL: </b>";
431
  echo "<input type='text' name='return' value='".$value['return']."'> Optional <br />";
432
  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 />";
433
 
434
- if ($kstatus == "true") {
435
- echo "<b>Return to merchant button text: </b>";
436
- echo "<input type='text' name='cbt' value='".$value['cbt']."'> Optional <br />";
437
- echo "Sets the text for the Return to Merchant button on the PayPal Payment Complete page. <b> Note: (per PayPal) this only takes effect if the Return URL is set.</b> Max length: 60. <br /><br />";
438
- }
439
 
440
  ?>
441
  <hr>
@@ -479,15 +354,13 @@ Various trademarks held by their respective owners. This plugin is not affiliate
479
  <div style="background-color:#fff;padding: 5px;border: 1px solid #0074A2;">
480
 
481
 
482
- <?php if ($kstatus == "false") { ?>
483
-
484
  <center><h1><label style="color: #0074A2;">Get more sales!</label></h1></center>
485
 
486
- <center><b>Upgrade to WP eCommerce PayPal Plus</b></center>
487
 
488
  <br />
489
 
490
- Plus Features: <br />
491
  &#10004; Charge Fixed Tax <br />
492
  &#10004; Charge Tax Rate <br />
493
  &#10004; Charge Shipping & Handling<br />
@@ -507,57 +380,12 @@ Plus Features: <br />
507
 
508
  <br />
509
 
510
- <center><a target='_blank' href="https://wpplugin.org/wp-ecommerce-paypal/" class='button-primary'>Buy Now</a></center>
511
 
512
 
513
 
514
  <br />
515
 
516
- <div style="border-top: 1px solid #0074A2;"></div>
517
-
518
-
519
-
520
- <?php } ?>
521
-
522
-
523
-
524
-
525
- <form method="post" action="">
526
- <table style="width:100%;">
527
- <thead><tr><th colspan="2" align="left">
528
- <?php
529
-
530
- if ($kstatus == "true") {
531
- echo '<center><b>Your license key is:</b></center>';
532
- $buttonvalue = "Change";
533
- } else {
534
- echo '<center><b>If you have a license key, enter it here:</b></center>';
535
- $buttonvalue = "Activate";
536
- }
537
-
538
- ?>
539
- </th></tr></thead>
540
- <tbody>
541
- <tr>
542
- <td>
543
- <input class="textfield" name="wpecpp_plicsence_key" size="25" type="text" id="wpecpp_plicsence_key" value="<?php echo get_option('wpecpp_plicsence_key'.PLICENSE_PRODUCT_NAME); ?>" />
544
- &nbsp; <input type="submit" value="<?php echo $buttonvalue; ?>" class="button-primary" id="plicense_activate" name="plicense_activate">&nbsp;&nbsp;&nbsp;
545
- <?php
546
- echo "<center>";
547
- switch (get_option('wpecpp_plicsence_key_status')) {
548
- case 'true': echo '<span style="color:green;">License key is active.</span>'; break;
549
- case 'false': echo '<span style="color:red;">License key is not valid.</span>'; break;
550
- case 'pending': echo '<span style="color:red;">License key is pending.</span>'; break;
551
- case 'expired': echo '<span style="color:red;">License key is expired.</span>'; break;
552
- }
553
- ?>
554
- </center>
555
- </td>
556
- </tr>
557
- </tbody>
558
- </table>
559
- </form>
560
-
561
  </div>
562
 
563
 
@@ -787,20 +615,11 @@ if ($value['weight_unit'] == "1") { $weight_unit = "lbs"; }
787
  if ($value['weight_unit'] == "2") { $weight_unit = "kgs"; }
788
 
789
  $output = "";
790
- $output .= "<table><tr>";
791
 
792
- $kstatus = get_option('wpecpp_plicsence_key_status');
793
- if (empty($kstatus)) { $kstatus = "false"; }
794
 
795
- if ($kstatus == "true") {
796
- if ($value['showname'] == "1") {
797
- $output .= "<td colspan='2'><label>". $atts['name'] ."</label></td></tr><tr>";
798
- }
799
- if ($value['showprice'] == "1") {
800
- $output .= "<td><label>". $atts['price'] ."</label> &nbsp;</td>";
801
- }
802
- }
803
- $output .= "<td><form target='$target' action='https://www.$path.com/cgi-bin/webscr' method='post'>";
804
  $output .= "<input type='hidden' name='cmd' value='_xclick' />";
805
  $output .= "<input type='hidden' name='business' value='$account' />";
806
  $output .= "<input type='hidden' name='item_name' value='". $atts['name'] ."' />";
@@ -819,7 +638,7 @@ $output .= "<input type='hidden' name='lc' value='$language'>";
819
  $output .= "<input type='hidden' name='no_note' value='$note'>";
820
  $output .= "<input type='hidden' name='return' value='". $value['return'] ."' />";
821
  $output .= "<input type='hidden' name='cancel_return' value='". $value['cancel'] ."' />";
822
- $output .= "<input class='paypalbuttonimage' type='image' src='$img' border='0' name='submit' alt='Make your payments with PayPal. It is free, secure, effective.'>";
823
  $output .= "<img alt='' border='0' src='https://www.paypal.com/$language/i/scr/pixel.gif' width='1' height='1'>";
824
  $output .= "</form></td></tr></table>";
825
 
1
  <?php
2
 
3
  /*
4
+ Plugin Name: Easy PayPal Button
5
+ Plugin URI: hhttps://wpplugin.org/easy-paypal-button/
6
  Description: A simple and easy way to integrate PayPal into your WordPress website.
7
  Author: Scott Paterson
8
  Author URI: https://wpplugin.org
9
  License: GPL2
10
+ Version: 1.2.1
11
  */
12
 
13
  /* Copyright 2014-2015 Scott Paterson
109
  add_action( "admin_menu", "wpecpp_plugin_menu" );
110
 
111
  function wpecpp_plugin_menu() {
112
+ add_options_page( "Easy PayPal Button", "Easy PayPal Button", "manage_options", "wp-ecommerce-settings", "wpecpp_plugin_options" );
113
  }
114
  add_filter('plugin_action_links', 'wpecpp_myplugin_plugin_action_links', 10, 2);
115
 
131
  }
132
 
133
 
 
 
 
 
 
 
 
134
 
135
 
136
  // settings page
139
 
140
 
141
  echo "<table width='100%'><tr><td width='65%'>";
142
+ echo "<h1><label style='color: #0074A2;'><center>Easy PayPal Button Settings</center></label></h1>";
143
  echo "<form method='post' action='".$_SERVER["REQUEST_URI"]."'>";
144
 
145
 
190
  To use this plugin, put the shortcode <b>[wpecpp name='example product name' price='6.99']</b> in your page or post anywhere you want the PayPal button to show.
191
  You can put the shortcode as many times as you want in a post or page, there is no limit.
192
 
 
 
 
 
 
 
 
 
 
 
 
 
193
 
194
  <br /><br /><hr>
195
 
277
 
278
 
279
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
280
 
281
  echo "<h3><label style='color: #0074A2;'>Other</label></h3>";
282
 
284
 
285
 
286
 
 
 
 
 
 
 
 
 
 
 
 
 
287
 
288
  echo "<b>Button Size and type:</b></td><td valign='top' style='text-align: center;'>";
289
  echo "<input "; if ($value['size'] == "1") { echo "checked='checked'"; } echo " type='radio' name='size' value='1'>Small <br /><img src='https://www.paypalobjects.com/en_US/i/btn/btn_buynow_SM.gif'></td><td valign='top' style='text-align: center;'>";
290
  echo "<input "; if ($value['size'] == "2") { echo "checked='checked'"; } echo " type='radio' name='size' value='2'>Big <br /><img src='https://www.paypalobjects.com/en_US/i/btn/btn_buynow_LG.gif'></td><td valign='top' style='text-align: center;'>";
291
  echo "<input "; if ($value['size'] == "3") { echo "checked='checked'"; } echo " type='radio' name='size' value='3'>Big with credit cards <br /><img src='https://www.paypalobjects.com/en_US/i/btn/btn_buynowCC_LG.gif'></td><td valign='top' style='text-align: center;'>";
292
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
293
 
294
  echo "</td></tr><tr><td><b>PayPal opens in:</b></td>";
295
  echo "<td><input "; if ($value['opens'] == "1") { echo "checked='checked'"; } echo " type='radio' name='opens' value='1'>Same page</td>";
296
  echo "<td><input "; if ($value['opens'] == "2") { echo "checked='checked'"; } echo " type='radio' name='opens' value='2'>New page</td></tr>";
297
 
 
 
 
 
298
 
 
 
 
 
299
 
300
  echo "</table><br /><br />";
301
 
311
  echo "<input type='text' name='return' value='".$value['return']."'> Optional <br />";
312
  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 />";
313
 
 
 
 
 
 
314
 
315
  ?>
316
  <hr>
354
  <div style="background-color:#fff;padding: 5px;border: 1px solid #0074A2;">
355
 
356
 
 
 
357
  <center><h1><label style="color: #0074A2;">Get more sales!</label></h1></center>
358
 
359
+ <center><b>Upgrade to Easy PayPal Button Pro</b></center>
360
 
361
  <br />
362
 
363
+ Pro Features: <br />
364
  &#10004; Charge Fixed Tax <br />
365
  &#10004; Charge Tax Rate <br />
366
  &#10004; Charge Shipping & Handling<br />
380
 
381
  <br />
382
 
383
+ <center><a target='_blank' href="https://wpplugin.org/easy-paypal-button/" class='button-primary'>Upgrade</a></center>
384
 
385
 
386
 
387
  <br />
388
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
389
  </div>
390
 
391
 
615
  if ($value['weight_unit'] == "2") { $weight_unit = "kgs"; }
616
 
617
  $output = "";
618
+ $output .= "<table style='border: none;'><tr>";
619
 
 
 
620
 
621
+
622
+ $output .= "<td style='border: none;'><form target='$target' action='https://www.$path.com/cgi-bin/webscr' method='post'>";
 
 
 
 
 
 
 
623
  $output .= "<input type='hidden' name='cmd' value='_xclick' />";
624
  $output .= "<input type='hidden' name='business' value='$account' />";
625
  $output .= "<input type='hidden' name='item_name' value='". $atts['name'] ."' />";
638
  $output .= "<input type='hidden' name='no_note' value='$note'>";
639
  $output .= "<input type='hidden' name='return' value='". $value['return'] ."' />";
640
  $output .= "<input type='hidden' name='cancel_return' value='". $value['cancel'] ."' />";
641
+ $output .= "<input style='border: none;' class='paypalbuttonimage' type='image' src='$img' border='0' name='submit' alt='Make your payments with PayPal. It is free, secure, effective.'>";
642
  $output .= "<img alt='' border='0' src='https://www.paypal.com/$language/i/scr/pixel.gif' width='1' height='1'>";
643
  $output .= "</form></td></tr></table>";
644