Version Description
- New Interface
Download this release
Release Info
Developer | scottpaterson |
Plugin | PayPal Buy Now Button |
Version | 1.3 |
Comparing to | |
See all releases |
Code changes from version 1.2.1 to 1.3
- banner-772x250.png +0 -0
- readme.txt +7 -2
- screenshot-2.jpg +0 -0
- screenshot-2.png +0 -0
- wp-ecommerce-paypal.php +86 -44
banner-772x250.png
DELETED
Binary file
|
readme.txt
CHANGED
@@ -1,11 +1,11 @@
|
|
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.
|
9 |
License: GPLv2 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
@@ -78,6 +78,9 @@ Yes, there is no limit to the amount you can put on one post / page, or your ent
|
|
78 |
|
79 |
== Changelog ==
|
80 |
|
|
|
|
|
|
|
81 |
= 1.2.1 =
|
82 |
* Fixed border around button problem
|
83 |
|
@@ -110,6 +113,8 @@ Yes, there is no limit to the amount you can put on one post / page, or your ent
|
|
110 |
|
111 |
== Upgrade Notice ==
|
112 |
|
|
|
|
|
113 |
|
114 |
= 1.2.1 =
|
115 |
Fixed border around button problem
|
1 |
=== Easy PayPal Button ===
|
2 |
+
Contributors: scottpaterson,wp-plugin
|
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.3
|
9 |
License: GPLv2 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
78 |
|
79 |
== Changelog ==
|
80 |
|
81 |
+
= 1.3 =
|
82 |
+
* New Interface
|
83 |
+
|
84 |
= 1.2.1 =
|
85 |
* Fixed border around button problem
|
86 |
|
113 |
|
114 |
== Upgrade Notice ==
|
115 |
|
116 |
+
= 1.3 =
|
117 |
+
New Interface
|
118 |
|
119 |
= 1.2.1 =
|
120 |
Fixed border around button problem
|
screenshot-2.jpg
DELETED
Binary file
|
screenshot-2.png
ADDED
Binary file
|
wp-ecommerce-paypal.php
CHANGED
@@ -7,7 +7,7 @@ Description: A simple and easy way to integrate PayPal into your WordPress websi
|
|
7 |
Author: Scott Paterson
|
8 |
Author URI: https://wpplugin.org
|
9 |
License: GPL2
|
10 |
-
Version: 1.
|
11 |
*/
|
12 |
|
13 |
/* Copyright 2014-2015 Scott Paterson
|
@@ -120,6 +120,22 @@ array_unshift($links, $settings_link);
|
|
120 |
return $links;
|
121 |
}
|
122 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
123 |
function wpecpp_plugin_options() {
|
124 |
if ( !current_user_can( "manage_options" ) ) {
|
125 |
wp_die( __( "You do not have sufficient permissions to access this page." ) );
|
@@ -133,8 +149,8 @@ wp_die( __( "You do not have sufficient permissions to access this page." ) );
|
|
133 |
|
134 |
|
135 |
|
136 |
-
echo "<table width='100%'><tr><td width='
|
137 |
-
echo "<
|
138 |
echo "<form method='post' action='".$_SERVER["REQUEST_URI"]."'>";
|
139 |
|
140 |
|
@@ -178,18 +194,23 @@ echo "</td><td></td></tr><tr><td>";
|
|
178 |
|
179 |
|
180 |
// form
|
181 |
-
echo "<br
|
182 |
?>
|
183 |
|
184 |
-
<
|
|
|
|
|
|
|
185 |
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.
|
186 |
You can put the shortcode as many times as you want in a post or page, there is no limit.
|
187 |
|
188 |
|
189 |
-
<br /><br
|
190 |
-
|
191 |
|
192 |
-
<
|
|
|
|
|
193 |
|
194 |
<b>Language:</b>
|
195 |
<select name="language">
|
@@ -246,12 +267,16 @@ PayPal currently supports 18 languages.
|
|
246 |
<option <?php if ($value['currency'] == "25") { echo "SELECTED"; } ?> value="25">U.S. Dollar - USD</option>
|
247 |
</select>
|
248 |
PayPal currently supports 25 currencies.
|
249 |
-
<br /><br
|
250 |
|
251 |
<?php
|
252 |
|
253 |
|
254 |
-
|
|
|
|
|
|
|
|
|
255 |
|
256 |
echo "<b>Live Account: </b><input type='text' name='liveaccount' value='".$value['liveaccount']."'> Required";
|
257 |
echo "<br />Enter a valid Merchant account ID (strongly recommend) or PayPal account email address. All payments will go to this account.";
|
@@ -268,13 +293,18 @@ echo "<b>Sandbox Mode:</b>";
|
|
268 |
echo " <input "; if ($value['mode'] == "1") { echo "checked='checked'"; } echo " type='radio' name='mode' value='1'>On (Sandbox mode)";
|
269 |
echo " <input "; if ($value['mode'] == "2") { echo "checked='checked'"; } echo " type='radio' name='mode' value='2'>Off (Live mode)";
|
270 |
|
271 |
-
echo "<br /><br
|
272 |
|
273 |
|
274 |
|
|
|
275 |
|
276 |
-
|
|
|
|
|
|
|
277 |
|
|
|
278 |
echo "<table><tr><td valign='top'>";
|
279 |
|
280 |
|
@@ -308,17 +338,13 @@ echo "If the customer goes to PayPal and successfully pays, where are they redir
|
|
308 |
|
309 |
|
310 |
?>
|
311 |
-
<
|
312 |
-
|
313 |
|
314 |
<input type='hidden' name='update'><br />
|
315 |
-
<input type='submit' name='btn2' class='button-primary' value='Save Settings'>
|
316 |
-
|
317 |
|
318 |
|
319 |
-
<br /><br />
|
320 |
|
321 |
-
<hr>
|
322 |
|
323 |
|
324 |
<br /><br /><br />
|
@@ -343,49 +369,65 @@ Various trademarks held by their respective owners. This plugin is not affiliate
|
|
343 |
|
344 |
|
345 |
</td><td width='5%'>
|
346 |
-
</td><td width='
|
347 |
|
|
|
348 |
|
349 |
-
<div style="background-color:#
|
|
|
|
|
350 |
|
|
|
351 |
|
352 |
-
<center><h1><label style="color: #0074A2;">Get more sales!</label></h1></center>
|
353 |
|
354 |
-
<center><
|
355 |
|
356 |
<br />
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
357 |
|
358 |
-
|
359 |
-
|
360 |
-
|
361 |
-
|
362 |
-
✔ Show Price Beside Button <br />
|
363 |
-
✔ Show Name Beside Button <br />
|
364 |
-
✔ Apply a Fixed Discount <br />
|
365 |
-
✔ Apply a Discount Rate<br />
|
366 |
-
✔ Add an Item ID or SKU<br />
|
367 |
-
✔ Hide Customer's Custom Note Field<br />
|
368 |
-
✔ Change PayPal's Return to Merchant Text<br />
|
369 |
-
✔ Each Button Can Have Its Own Size<br />
|
370 |
-
✔ Add a Custom Button Image<br />
|
371 |
-
<!---
|
372 |
-
✔ Add a menu with different prices / options<br />
|
373 |
-
✔ Add item weight & weight unit<br />
|
374 |
-
--->
|
375 |
-
|
376 |
-
<br />
|
377 |
-
|
378 |
-
<center><a target='_blank' href="https://wpplugin.org/easy-paypal-button/" class='button-primary'>Upgrade</a></center>
|
379 |
|
|
|
380 |
|
|
|
|
|
|
|
381 |
|
382 |
-
<br />
|
|
|
|
|
|
|
|
|
383 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
384 |
</div>
|
385 |
|
|
|
|
|
|
|
|
|
|
|
|
|
386 |
|
387 |
|
388 |
|
|
|
389 |
|
390 |
</td></tr></table>
|
391 |
|
7 |
Author: Scott Paterson
|
8 |
Author URI: https://wpplugin.org
|
9 |
License: GPL2
|
10 |
+
Version: 1.3
|
11 |
*/
|
12 |
|
13 |
/* Copyright 2014-2015 Scott Paterson
|
120 |
return $links;
|
121 |
}
|
122 |
|
123 |
+
function wpecpp_plugin_settings_link($links)
|
124 |
+
{
|
125 |
+
unset($links['edit']);
|
126 |
+
|
127 |
+
$forum_link = '<a target="_blank" href="https://wordpress.org/support/plugin/wp-ecommerce-paypal">' . __('Support', PTP_LOC) . '</a>';
|
128 |
+
$premium_link = '<a href="https://wpplugin.org/easy-paypal-button/">' . __('Purchase Premium', PTP_LOC) . '</a>';
|
129 |
+
array_push($links, $forum_link);
|
130 |
+
array_push($links, $premium_link);
|
131 |
+
return $links;
|
132 |
+
}
|
133 |
+
|
134 |
+
$plugin = plugin_basename(__FILE__);
|
135 |
+
add_filter("plugin_action_links_$plugin", 'wpecpp_plugin_settings_link' );
|
136 |
+
|
137 |
+
|
138 |
+
|
139 |
function wpecpp_plugin_options() {
|
140 |
if ( !current_user_can( "manage_options" ) ) {
|
141 |
wp_die( __( "You do not have sufficient permissions to access this page." ) );
|
149 |
|
150 |
|
151 |
|
152 |
+
echo "<table width='100%'><tr><td width='70%'><br />";
|
153 |
+
echo "<label style='color: #000;font-size:18pt;'><center>Easy PayPal Button Settings</center></label>";
|
154 |
echo "<form method='post' action='".$_SERVER["REQUEST_URI"]."'>";
|
155 |
|
156 |
|
194 |
|
195 |
|
196 |
// form
|
197 |
+
echo "<br />";
|
198 |
?>
|
199 |
|
200 |
+
<div style="background-color:#333333;padding:8px;color:#eee;font-size:12pt;font-weight:bold;">
|
201 |
+
Usage
|
202 |
+
</div><div style="background-color:#fff;border: 1px solid #E5E5E5;padding:5px;"><br />
|
203 |
+
|
204 |
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.
|
205 |
You can put the shortcode as many times as you want in a post or page, there is no limit.
|
206 |
|
207 |
|
208 |
+
<br /><br />
|
209 |
+
</div><br /><br />
|
210 |
|
211 |
+
<div style="background-color:#333333;padding:8px;color:#eee;font-size:12pt;font-weight:bold;">
|
212 |
+
Language & Currency
|
213 |
+
</div><div style="background-color:#fff;border: 1px solid #E5E5E5;padding:5px;"><br />
|
214 |
|
215 |
<b>Language:</b>
|
216 |
<select name="language">
|
267 |
<option <?php if ($value['currency'] == "25") { echo "SELECTED"; } ?> value="25">U.S. Dollar - USD</option>
|
268 |
</select>
|
269 |
PayPal currently supports 25 currencies.
|
270 |
+
<br /><br /></div>
|
271 |
|
272 |
<?php
|
273 |
|
274 |
|
275 |
+
?>
|
276 |
+
<br /><br /><div style="background-color:#333333;padding:8px;color:#eee;font-size:12pt;font-weight:bold;">
|
277 |
+
PayPal Account </div><div style="background-color:#fff;border: 1px solid #E5E5E5;padding:5px;"><br />
|
278 |
+
|
279 |
+
<?php
|
280 |
|
281 |
echo "<b>Live Account: </b><input type='text' name='liveaccount' value='".$value['liveaccount']."'> Required";
|
282 |
echo "<br />Enter a valid Merchant account ID (strongly recommend) or PayPal account email address. All payments will go to this account.";
|
293 |
echo " <input "; if ($value['mode'] == "1") { echo "checked='checked'"; } echo " type='radio' name='mode' value='1'>On (Sandbox mode)";
|
294 |
echo " <input "; if ($value['mode'] == "2") { echo "checked='checked'"; } echo " type='radio' name='mode' value='2'>Off (Live mode)";
|
295 |
|
296 |
+
echo "<br /><br /></div>";
|
297 |
|
298 |
|
299 |
|
300 |
+
?>
|
301 |
|
302 |
+
<br /><br />
|
303 |
+
<div style="background-color:#333333;padding:8px;color:#eee;font-size:12pt;font-weight:bold;">
|
304 |
+
Other Settings
|
305 |
+
</div><div style="background-color:#fff;border: 1px solid #E5E5E5;padding:5px;"><br />
|
306 |
|
307 |
+
<?php
|
308 |
echo "<table><tr><td valign='top'>";
|
309 |
|
310 |
|
338 |
|
339 |
|
340 |
?>
|
341 |
+
<br /><br /></div>
|
|
|
342 |
|
343 |
<input type='hidden' name='update'><br />
|
344 |
+
<input type='submit' name='btn2' class='button-primary' style='font-size: 17px;line-height: 28px;height: 32px;' value='Save Settings'>
|
|
|
345 |
|
346 |
|
|
|
347 |
|
|
|
348 |
|
349 |
|
350 |
<br /><br /><br />
|
369 |
|
370 |
|
371 |
</td><td width='5%'>
|
372 |
+
</td><td width='24%' valign='top'>
|
373 |
|
374 |
+
<br />
|
375 |
|
376 |
+
<div style="background-color:#333333;padding:8px;color:#eee;font-size:12pt;font-weight:bold;">
|
377 |
+
Professional Version
|
378 |
+
</div>
|
379 |
|
380 |
+
<div style="background-color:#fff;border: 1px solid #E5E5E5;padding:8px;">
|
381 |
|
|
|
382 |
|
383 |
+
<center><label style="font-size:14pt;">With the Pro version you'll <br /> be able to: </label></center>
|
384 |
|
385 |
<br />
|
386 |
+
<div class="dashicons dashicons-yes" style="margin-bottom: 6px;"></div> Charge Tax <br />
|
387 |
+
<div class="dashicons dashicons-yes" style="margin-bottom: 6px;"></div> Charge Shipping & Handling<br />
|
388 |
+
<div class="dashicons dashicons-yes" style="margin-bottom: 6px;"></div> Apply Discounts <br />
|
389 |
+
<div class="dashicons dashicons-yes" style="margin-bottom: 6px;"></div> Add Item ID and SKU<br />
|
390 |
+
<div class="dashicons dashicons-yes" style="margin-bottom: 6px;"></div> Custom Button Image<br />
|
391 |
+
<div class="dashicons dashicons-yes" style="margin-bottom: 6px;"></div> Priority Support<br />
|
392 |
+
<div class="dashicons dashicons-yes" style="margin-bottom: 6px;"></div> And Much More<br />
|
393 |
|
394 |
+
<br />
|
395 |
+
<center><a target='_blank' href="https://wpplugin.org/easy-paypal-button/" class='button-primary' style='font-size: 17px;line-height: 28px;height: 32px;'>Upgrade Now</a></center>
|
396 |
+
<br />
|
397 |
+
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
398 |
|
399 |
+
<br /><br />
|
400 |
|
401 |
+
<div style="background-color:#333333;padding:8px;color:#eee;font-size:12pt;font-weight:bold;">
|
402 |
+
Quick Links
|
403 |
+
</div>
|
404 |
|
405 |
+
<div style="background-color:#fff;border: 1px solid #E5E5E5;padding:8px;"><br />
|
406 |
+
|
407 |
+
<div class="dashicons dashicons-arrow-right" style="margin-bottom: 6px;"></div> <a target="_blank" href="https://wordpress.org/support/plugin/wp-ecommerce-paypal">Support Forum</a> <br />
|
408 |
+
|
409 |
+
<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 />
|
410 |
|
411 |
+
<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 />
|
412 |
+
|
413 |
+
</div>
|
414 |
+
|
415 |
+
<br /><br />
|
416 |
+
|
417 |
+
<div style="background-color:#333333;padding:8px;color:#eee;font-size:12pt;font-weight:bold;">
|
418 |
+
Like this Plugin?
|
419 |
</div>
|
420 |
|
421 |
+
<div style="background-color:#fff;border: 1px solid #E5E5E5;"><br />
|
422 |
+
|
423 |
+
<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>
|
424 |
+
<br />
|
425 |
+
|
426 |
+
</div>
|
427 |
|
428 |
|
429 |
|
430 |
+
</td><td width='1%'>
|
431 |
|
432 |
</td></tr></table>
|
433 |
|