WordPress Plugin: Enhanced Paypal Shortcodes

Enhanced Paypal Shortcodes is a plugin that I developed to make it easy for site owners to add a paypal button to their page or post, without having to ‘battle’ with the html editor.

This plugin is inspired by Paypal Shortcodes by Paolo Tresso (aka Pixline). This was an excellent plugin but only allowed for Add To Cart and View Cart functions – not really what I was looking for.

Features:

  • Use shortcodes to insert Buy Now, Subscribe, Add To Cart or Hosted (or saved) Paypal buttons to your wordpress page or post.
  • Ability to add most optional Paypal settings (see details below)
  • Formatting of button

Current Version:

Download Version 0.5a (right click and choose Save As)

Previous Versions:

Download Ver 0.4 (right click and choose Save As)

Download Ver 0.3 (right click and choose Save As)

Download Ver 0.2 (right click and choose Save As)

Download Ver 0.1 (right click and choose Save As)

Installation Instructions

Download zip file to your computer

Login to wp-admin and navigate to Tools -> Plugins -> Add New

Click on the Upload link

Click on the Browse button and navigate to the folder where you downloaded the plugin to

Select the file and click open, then click Install Now

Click on Activate Now and your plugin is installed.

Parameters for Shortcode for all Paypal buttons

Using Enhanced Paypal Shortcodes

To use the Enhanced Paypal Shortcodes, simply place the shortcode where you want your paypal button to appear and enter the parameters you need.

Sample Usage:

Buy Now Button:
[ paypal type="paynow" amount="12.99" email="youremail@domainname.com" itemno="12345657" name="Description" noshipping="1" nonote="1" qty="1" shipping="4.00" shipping2="1.00" currencycode="USD" imageurl="https://www.paypal.com/en_US/i/btn/btn_paynowCC_LG.gif" rm="2" notifyurl="http://notifyurl.com" returnurl="http://returnurl.com" scriptcode="scriptcode" imagewidth="100px" pagestyle="primary" lc="AU" cbt="Complete Your Purchase" ]

*note: remove the spaces from between the [ ]

This gives this button:

Subscribe Button with 2 trial periods and recurring Monthly payments.

[ paypal type="subscribe" email="youremail@domainname.com" itemno="12345657" name="Description" noshipping="1" currencycode="USD" imageurl="https://www.paypal.com/en_US/i/btn/btn_paynowCC_LG.gif" a1="1" p1="7" t1="D" a2="3" p2="1" t3="M" a3="47" p3="1" t3="M" rm="2" modify="2" notifyurl="http://notifyurl.com" returnurl="http://returnurl.com" scriptcode="scriptcode" imagewidth="100px" pagestyle="paypal" lc="AU" cbt="Complete Your Purchase" ]

*note: remove the spaces from between the [ ]

This gives this button:

Paypal Hosted Buttons

[ paypal type="hosted" buttonid="1234456" imageurl="https://www.paypal.com/en_US/i/btn/btn_paynowCC_LG.gif" ]

*note: remove the spaces from between the [ ]

Parameters & Frequently Asked Questions

Why would I use this plugin

We created this plugin to make it easy for WordPress website owners to embed paypal buttons in their posts or pages.

Whilst it is possible to paste the html code provided by Paypal into the page or post using the html editor, we’ve found that it can cause problems if the entry is then edited using the Visual editor.

This plugin provides a shortcode that will allow the site owner to specify the parameters for the paypal button required and automatically create the button when the page is displayed.

You can download the plugin from the wordpress repository: Enhanced Paypal Shortcodes

Print Friendly

What paypal buttons are supported?

The Enhanced Paypal Shortcodes plugins will allow you to create:

  • Pay Now
  • Subscribe
  • Add To Cart
  • Hosted

buttons on your website by using a shortcode within your Page or Post.

Print Friendly

How do I use the Enhanced Paypal Shortcodes plugin?

You use this plugin by adding the shortcode [ paypal ] to your sites pages or posts.  There are a series of parameters that are used to ‘code’ the paypal button. (Be sure to remove the space after the “[" and before the "]” to make the code work)

The full list of supported parameters are:

type = paynow, subscribe, addtocart or hosted
*Required

For Hosted Buttons:
buttonid = the button id number from your paypal code

For All Button Types:
imageurl = The location of the image for the button. Use full web address for the image – e.g http://domainname.com/mybuynowbutton.jpg.
Default is https://www.paypal.com/en_US/i/btn/btn_paynowCC_LG.gif

imagewidth = the width of the paypal image
Default is 100% of the image specified

For PayNow, Subscribe and Add To Cart Buttons:

email = the email address of the paypal account
*Required

itemno = A unique identifier for your product / service
*Required

name = Description of product / service
*Required

noshipping = Prompt for Shipping address
Options:
0 is prompt, but don’t require
1 is don’t prompt
2 is prompt and require the shipping address
Default is 0

currencycode = The currency for the transaction
Australian Dollar AUD
Canadian Dollar CAD
Czech Koruna CZK
Danish Krone DKK
Euro EUR
Hong Kong Dollar HKD
Hungarian Forint HUF
Israeli New Sheqel ILS
Japanese Yen JPY
Mexican Peso MXN
Norwegian Krone NOK
New Zealand Dollar NZD
Polish Zloty PLN
Pound Sterling GBP
Singapore Dollar SGD
Swedish Krona SEK
Swiss Franc CHF
U.S. Dollar USD
Default is USD

rm = The return method. This will only work if returnurl is also set. This variable is often required by membership type software
0 – all shopping cart transactions use the GET method
1 – the payer’s browser is redirected to the return URL by the GET method, and no transaction variables are sent
2 – the payer’s browser is redirected to the return URL by the POST method, and all transaction variables are also posted
Default is 0.

notifyurl = The URL to send payment advice too. Often required for IPN or other notifications. If this parameter is not used, no notifyurl value is added to the button

returnurl = The URL to which the payer’s browser is redirected after completing the payment; for example, a URL on your site that displays a “Thank you for your payment” page.
Default – The browser is redirected to a PayPal web page.

cancelurl = The URL to which the payer’s browser is redirected if the purchaser cancels the payment transaction before completing the process

scriptcode = the link to any script code that you may need to include.  e.g For Jrox JAM, some script code is added to the paypal buttons. Usage /foldername/scriptcode.php
If this parameter is not used, no notifyurl value is added to the button

pagestyle = The custom payment page style for checkout pages. Allowable values:
paypal – use the PayPal page style
primary – use the page style that you marked as primary in your account profile
page_style_name – use the custom payment page style from your account profile that has the specified name
Default is primary if you added a custom payment page style to your account profile. Otherwise, the default is paypal.

cbt = Sets the text for the Return to Merchant button on the PayPal Payment Complete page. For Business accounts, the return button displays your business name in place of the word “Merchant” by default. For Donate buttons, the text reads “Return to donations coordinator” by default.
NOTE: The returnurl variable must also be set.

cn = Label that appears above the note field on the Check Out page. This value is not saved and will not appear in any of your notifications. If omitted, the default label above the note field is “Add special instructions to merchant.” The cn variable is not valid with Subscribe buttons or if you include nonote=”1″.

lc = Sets the payer’s language for the billing information/log-in page only.
The default is US. For allowable values visit: https://cms.paypal.com/au/cgi-bin/?cmd=_render-content&content_ID=developer/e_howto_html_countrycodes

Paynow & Add To Cart Button only parameters

amount = the amount to charge (for Paynow & Add To Cart buttons only)
*Required for Add To Cart Buttons
If left blank on PayNow, paypal will ask for an amount to pay

qty = The quantity to pay for or add to cart.
ask  will let the purchaser specify how many they wish to purchase or add
or set the number greater than 0 to force a specific quantity
If omitted from the shortcode, a quantity of 1 is used.

nonote = Prompt payers to include a note (Paynow buttons only)
0 is show the note box and prompt the user
1 is hide the note box and do not prompt the user
Default is 0

shipping = the amount of shipping to charge per item

shipping2 = the amount of shipping to charge for each extra item purchased.

Subscribe Button only parameters

For Subscription buttons, you can specify 2 trial periods and the full recurring payment.
Trial Period 1:
a1 = The value to charge for the first trial period
p1 = The duration of the first trial.
t1 = The units of duration.
D for Days, allowable entries for p1: 1 to 90
W for Weeks, allowable entries for p1: 1 to 52
M for Months, allowable entries for p1: 1 to 24
Y for Years, allowable entries for p1: 1 to 5

Trial Period 2:
a2 = The value to charge for the second trial period
p2 = The duration of the second trial.
t2 = The units of duration.
D for Days, allowable entries for p2: 1 to 90
W for Weeks, allowable entries for p2: 1 to 52
M for Months, allowable entries for p2: 1 to 24
Y for Years, allowable entries for p2: 1 to 5

The full subscription Payment:
a3 = The value to charge
p3 = The duration between charging
t3 = The units of duration.
D for Days, allowable entries for p3: 1 to 90
W for Weeks, allowable entries for p3: 1 to 52
M for Months, allowable entries for p3: 1 to 24
Y for Years, allowable entries for p3: 1 to 5

src = Recurring payments. Subscription payments recur unless subscribers cancel their subscriptions before the end of the current billing cycle or you limit the number of times that payments recur with the value that you specify for srt.
Allowable values:
0 – subscription payments do not recur
1 – subscription payments recur
Default is 0.

srt = Recurring times. Number of times that subscription payments recur. Specify an integer above 1. Valid only if you specify src=”1″. If omitted, the payment recurs indefinitely.
Allowable values:an integer above 1.

sra = Reattempt on failure. If a recurring payment fails, PayPal attempts to collect the payment two more times before canceling the subscription.
Allowable values:
0 – do not reattempt failed recurring payments
1 – reattempt failed recurring payments before canceling
Default is 0

modify – Modification behavior. Allowable values:
0 – allows subscribers to only create new subscriptions
1 – allows subscribers to modify their current subscriptions or sign up for new ones
2 – allows subscribers to only modify their current subscriptions
Default is 0

Add To Cart

display = Display the contents of the PayPal Shopping Cart to the buyer. If set, the shopping cart will be displayed after an item is added.  If not set, the item will be added to the cart only.
Set display=1 for the shopping cart to be displayed.

Formatting All Buttons
The plugin will wrap the paypal button in a <div> tag.  The formatting options available are:

divwidth = the width of the div.  This should be at least the width of the image.
Default is 100%

textalign = the alignment of the image / text within the div
Allowable values:
left – text is left justified
right – text is right justified
center – text is centered
Default is none, the alignment is taken from the theme or page

float = position of the div on the page
left – the div ‘floats’ on the left
right – the div ‘floats’ on the right
Default – if this value is missing, the div is centered on the page according to the divwidth parameter

marginleft = the amount of space between the div and the text to the left of the div (particularly good to use when using float=right)
Default – if this value is missing, the page format is used

marginright = the amount of space between the div and the text to the right of the div
(particularly good to use when using float=left)
Default – if this value is missing, the page format is used

margintop = the amount of space to the line above the div
Default is 10px

marginbottom = the amount of space to the line below the div
Default is 10px

Button Formatting
As images are inserted into the plugin code, these images will ‘pick up’ the formatting for images specified in the theme. This often causes issues with borders or backgrounds being added.

To allow more flexibility to the site owner, a class has been added to each of the images used so that the site owner can override any default formatting.

Image Classes:

Pixel tracking image

The shortcode will add a ‘placeholder’ Paypal image that is 1px wide by 1px tall into the button.  The code adds a class of “ppalholder” to this image.  This will allow site owners to add the class to their theme styles and remove any borders that cause the image to be ‘visible’.

Use the style format of:

.ppalholder { };

in your themes stylesheet or custom stylesheet to change any default formats for this image.

Class added to Buy Now, Add To Cart, Hosted or Subscribe button

The code will add the class “ppalbtn” to the actual image embedded on the page to allow for more formatting choices.

Use the style format of:

.ppalbtn { };

in your themes stylesheet or custom stylesheet to change any default formats for this image.

 

Print Friendly

How do I add a Buy Now button with the Enhanced Paypal Shortcodes plugin?

To create a Buy Now button on your site, insert the shortcode whereever you want to appear.

Supported parameters are:

type = paynow
*Required

email = the email address of the paypal account
*Required

itemno = A unique identifier for your product / service
*Required

name = Description of product / service
*Required

amount = the amount to charge (for Paynow & Add To Cart buttons only)
*Required

qty = The quantity to pay for or add to cart.
ask  will let the purchaser specify how many they wish to purchase or add
or set the number greater than 0 to force a specific quantity
If omitted from the shortcode, a quantity of 1 is used.

nonote = Prompt payers to include a note (Paynow buttons only)
0 is show the note box and prompt the user
1 is hide the note box and do not prompt the user
Default is 0

shipping = the amount of shipping to charge per item

shipping2 = the amount of shipping to charge for each extra item purchased.

imageurl = The location of the image for the button. Use full web address for the image – e.g http://domainname.com/mybuynowbutton.jpg.
Default is https://www.paypal.com/en_US/i/btn/btn_paynowCC_LG.gif

imagewidth = the width of the paypal image
Default is 100% of the image specified

noshipping = Prompt for Shipping address
Options:
0 is prompt, but don’t require
1 is don’t prompt
2 is prompt and require the shipping address
Default is 0

currencycode = The currency for the transaction
Australian Dollar AUD
Canadian Dollar CAD
Czech Koruna CZK
Danish Krone DKK
Euro EUR
Hong Kong Dollar HKD
Hungarian Forint HUF
Israeli New Sheqel ILS
Japanese Yen JPY
Mexican Peso MXN
Norwegian Krone NOK
New Zealand Dollar NZD
Polish Zloty PLN
Pound Sterling GBP
Singapore Dollar SGD
Swedish Krona SEK
Swiss Franc CHF
U.S. Dollar USD
Default is USD

rm = The return method. This will only work if returnurl is also set. This variable is often required by membership type software
0 – all shopping cart transactions use the GET method
1 – the payer’s browser is redirected to the return URL by the GET method, and no transaction variables are sent
2 – the payer’s browser is redirected to the return URL by the POST method, and all transaction variables are also posted
Default is 0.

notifyurl = The URL to send payment advice too. Often required for IPN or other notifications. If this parameter is not used, no notifyurl value is added to the button

returnurl = The URL to which the payer’s browser is redirected after completing the payment; for example, a URL on your site that displays a “Thank you for your payment” page.
Default – The browser is redirected to a PayPal web page.

cancelurl = The URL to which the payer’s browser is redirected if the purchaser cancels the payment transaction before completing the process

scriptcode = the link to any script code that you may need to include.  e.g For Jrox JAM, some script code is added to the paypal buttons. Usage /foldername/scriptcode.php
If this parameter is not used, no notifyurl value is added to the button

pagestyle = The custom payment page style for checkout pages. Allowable values:
paypal – use the PayPal page style
primary – use the page style that you marked as primary in your account profile
page_style_name – use the custom payment page style from your account profile that has the specified name
Default is primary if you added a custom payment page style to your account profile. Otherwise, the default is paypal.

cbt = Sets the text for the Return to Merchant button on the PayPal Payment Complete page. For Business accounts, the return button displays your business name in place of the word “Merchant” by default. For Donate buttons, the text reads “Return to donations coordinator” by default.
NOTE: The returnurl variable must also be set.

cn = Label that appears above the note field on the Check Out page. This value is not saved and will not appear in any of your notifications. If omitted, the default label above the note field is “Add special instructions to merchant.” The cn variable is not valid with Subscribe buttons or if you include nonote=”1″.

lc = Sets the payer’s language for the billing information/log-in page only.
The default is US. For allowable values visit: https://cms.paypal.com/au/cgi-bin/?cmd=_render-content&content_ID=developer/e_howto_html_countrycodes

Formatting All Buttons

The plugin will wrap the paypal button in a <div> tag.  The formatting options available are:

divwidth = the width of the div.  This should be at least the width of the image.
Default is 100%

textalign = the alignment of the image / text within the div
Allowable values:
left – text is left justified
right – text is right justified
center – text is centered
Default is none, the alignment is taken from the theme or page

float = position of the div on the page
left – the div ‘floats’ on the left
right – the div ‘floats’ on the right
Default – if this value is missing, the div is centered on the page according to the divwidth parameter

marginleft = the amount of space between the div and the text to the left of the div (particularly good to use when using float=right)
Default – if this value is missing, the page format is used

marginright = the amount of space between the div and the text to the right of the div
(particularly good to use when using float=left)
Default – if this value is missing, the page format is used

margintop = the amount of space to the line above the div
Default is 10px

marginbottom = the amount of space to the line below the div
Default is 10px

Button Formatting
As images are inserted into the plugin code, these images will ‘pick up’ the formatting for images specified in the theme. This often causes issues with borders or backgrounds being added.

To allow more flexibility to the site owner, a class has been added to each of the images used so that the site owner can override any default formatting.

Image Classes:

Pixel tracking image

The shortcode will add a ‘placeholder’ Paypal image that is 1px wide by 1px tall into the button.  The code adds a class of “ppalholder” to this image.  This will allow site owners to add the class to their theme styles and remove any borders that cause the image to be ‘visible’.

Use the style format of:

.ppalholder { };

in your themes stylesheet or custom stylesheet to change any default formats for this image.

Class added to Buy Now, Add To Cart, Hosted or Subscribe button

The code will add the class “ppalbtn” to the actual image embedded on the page to allow for more formatting choices.

Use the style format of:

.ppalbtn { };

in your themes stylesheet or custom stylesheet to change any default formats for this image.

Example

[ paypal type="paynow" amount="12.99" email="youremail@domainname.com" itemno="12345657" name="Description" noshipping="1" nonote="1" qty="1" shipping="4.00" shipping2="1.00" currencycode="USD" imageurl="https://www.paypal.com/en_US/i/btn/btn_paynowCC_LG.gif" rm="2" notifyurl="http://notifyurl.com" returnurl="http://returnurl.com" scriptcode="scriptcode" imagewidth="100px" pagestyle="paypal" lc="AU" cbt="Complete Your Purchase" ]

To allow purchasers to choose the quantity they wish to add to the cart

[ paypal type="paynow" amount="12.99" email="youremail@domainname.com" itemno="12345657" name="Description" noshipping="1" nonote="1" qty="ask" shipping="4.00" shipping2="1.00" currencycode="USD" imageurl="https://www.paypal.com/en_US/i/btn/btn_paynowCC_LG.gif" rm="2" notifyurl="http://notifyurl.com" returnurl="http://returnurl.com" scriptcode="scriptcode" imagewidth="100px" pagestyle="paypal" lc="AU" cbt="Complete Your Purchase" ]

Notes:

  1. Be sure to remove the space after the “[" and before the "]” to make the code work
  2. Change email to your paypal email address
Print Friendly

How do I add a Subscription button with the Enhanced Paypal Shortcodes plugin?

To create a Subscription button on your site, insert the shortcode whereever you want to appear.

Supported parameters are:

type = subscribe
*Required

email = the email address of the paypal account
*Required

itemno = A unique identifier for your product / service
*Required

name = Description of product / service
*Required

imageurl = The location of the image for the button. Use full web address for the image – e.g http://domainname.com/mybuynowbutton.jpg.

Default is https://www.paypal.com/en_AU/i/btn/btn_subscribeCC_LG.gif

imagewidth = the width of the paypal image
Default is 100% of the image specified

noshipping = Prompt for Shipping address
Options:
0 is prompt, but don’t require
1 is don’t prompt
2 is prompt and require the shipping address
Default is 0

currencycode = The currency for the transaction
Australian Dollar AUD
Canadian Dollar CAD
Czech Koruna CZK
Danish Krone DKK
Euro EUR
Hong Kong Dollar HKD
Hungarian Forint HUF
Israeli New Sheqel ILS
Japanese Yen JPY
Mexican Peso MXN
Norwegian Krone NOK
New Zealand Dollar NZD
Polish Zloty PLN
Pound Sterling GBP
Singapore Dollar SGD
Swedish Krona SEK
Swiss Franc CHF
U.S. Dollar USD
Default is USD

rm = The return method. This will only work if returnurl is also set. This variable is often required by membership type software
0 – all shopping cart transactions use the GET method
1 – the payer’s browser is redirected to the return URL by the GET method, and no transaction variables are sent
2 – the payer’s browser is redirected to the return URL by the POST method, and all transaction variables are also posted
Default is 0.

notifyurl = The URL to send payment advice too. Often required for IPN or other notifications. If this parameter is not used, no notifyurl value is added to the button

returnurl = The URL to which the payer’s browser is redirected after completing the payment; for example, a URL on your site that displays a “Thank you for your payment” page.
Default – The browser is redirected to a PayPal web page.

cancelurl = The URL to which the payer’s browser is redirected if the purchaser cancels the payment transaction before completing the process

scriptcode = the link to any script code that you may need to include.  e.g For Jrox JAM, some script code is added to the paypal buttons. Usage /foldername/scriptcode.php
If this parameter is not used, no notifyurl value is added to the button

pagestyle = The custom payment page style for checkout pages. Allowable values:
paypal – use the PayPal page style
primary – use the page style that you marked as primary in your account profile
page_style_name – use the custom payment page style from your account profile that has the specified name
Default is primary if you added a custom payment page style to your account profile. Otherwise, the default is paypal.

cbt = Sets the text for the Return to Merchant button on the PayPal Payment Complete page. For Business accounts, the return button displays your business name in place of the word “Merchant” by default. For Donate buttons, the text reads “Return to donations coordinator” by default.
NOTE: The returnurl variable must also be set.

cn = Label that appears above the note field on the Check Out page. This value is not saved and will not appear in any of your notifications. If omitted, the default label above the note field is “Add special instructions to merchant.” The cn variable is not valid with Subscribe buttons or if you include nonote=”1″.

lc = Sets the payer’s language for the billing information/log-in page only.
The default is US. For allowable values visit: https://cms.paypal.com/au/cgi-bin/?cmd=_render-content&content_ID=developer/e_howto_html_countrycodes

Formatting All Buttons

The plugin will wrap the paypal button in a <div> tag.  The formatting options available are:

divwidth = the width of the div.  This should be at least the width of the image.
Default is 100%

textalign = the alignment of the image / text within the div
Allowable values:
left – text is left justified
right – text is right justified
center – text is centered
Default is none, the alignment is taken from the theme or page

float = position of the div on the page
left – the div ‘floats’ on the left
right – the div ‘floats’ on the right
Default – if this value is missing, the div is centered on the page according to the divwidth parameter

marginleft = the amount of space between the div and the text to the left of the div (particularly good to use when using float=right)
Default – if this value is missing, the page format is used

marginright = the amount of space between the div and the text to the right of the div
(particularly good to use when using float=left)
Default – if this value is missing, the page format is used

margintop = the amount of space to the line above the div
Default is 10px

marginbottom = the amount of space to the line below the div
Default is 10px

For Subscription buttons, you can specify 2 trial periods and the full recurring payment.
Trial Period 1:
a1 = The value to charge for the first trial period
p1 = The duration of the first trial.
t1 = The units of duration.
D for Days, allowable entries for p1: 1 to 90
W for Weeks, allowable entries for p1: 1 to 52
M for Months, allowable entries for p1: 1 to 24
Y for Years, allowable entries for p1: 1 to 5

Trial Period 2:
a2 = The value to charge for the second trial period
p2 = The duration of the second trial.
t2 = The units of duration.
D for Days, allowable entries for p2: 1 to 90
W for Weeks, allowable entries for p2: 1 to 52
M for Months, allowable entries for p2: 1 to 24
Y for Years, allowable entries for p2: 1 to 5

The full subscription Payment:
a3 = The value to charge
p3 = The duration between charging
t3 = The units of duration.
D for Days, allowable entries for p3: 1 to 90
W for Weeks, allowable entries for p3: 1 to 52
M for Months, allowable entries for p3: 1 to 24
Y for Years, allowable entries for p3: 1 to 5

src = Recurring payments. Subscription payments recur unless subscribers cancel their subscriptions before the end of the current billing cycle or you limit the number of times that payments recur with the value that you specify for srt.
Allowable values:
0 – subscription payments do not recur
1 – subscription payments recur
Default is 0.

srt = Recurring times. Number of times that subscription payments recur. Specify an integer above 1. Valid only if you specify src=”1″. If omitted, the payment recurs indefinitely.
Allowable values:an integer above 1.

sra = Reattempt on failure. If a recurring payment fails, PayPal attempts to collect the payment two more times before canceling the subscription.
Allowable values:
0 – do not reattempt failed recurring payments
1 – reattempt failed recurring payments before canceling
Default is 0

modify – Modification behavior. Allowable values:
0 – allows subscribers to only create new subscriptions
1 – allows subscribers to modify their current subscriptions or sign up for new ones
2 – allows subscribers to only modify their current subscriptions
Default is 0

Button Formatting
As images are inserted into the plugin code, these images will ‘pick up’ the formatting for images specified in the theme. This often causes issues with borders or backgrounds being added.

To allow more flexibility to the site owner, a class has been added to each of the images used so that the site owner can override any default formatting.

Image Classes:

Pixel tracking image

The shortcode will add a ‘placeholder’ Paypal image that is 1px wide by 1px tall into the button.  The code adds a class of “ppalholder” to this image.  This will allow site owners to add the class to their theme styles and remove any borders that cause the image to be ‘visible’.

Use the style format of:

.ppalholder { };

in your themes stylesheet or custom stylesheet to change any default formats for this image.

Class added to Buy Now, Add To Cart, Hosted or Subscribe button

The code will add the class “ppalbtn” to the actual image embedded on the page to allow for more formatting choices.

Use the style format of:

.ppalbtn { };

in your themes stylesheet or custom stylesheet to change any default formats for this image.

Example

[ paypal type="subscribe" email="youremail@domainname.com" itemno="12345657" name="Description" noshipping="1" currencycode="USD" imageurl="https://www.paypal.com/en_US/i/btn/btn_paynowCC_LG.gif" a1="1" p1="7" t1="D" a2="3" p2="1" t3="M" a3="47" p3="1" t3="M" rm="2" modify="2" notifyurl="http://notifyurl.com" returnurl="http://returnurl.com" scriptcode="scriptcode" imagewidth="100px" pagestyle="paypal" lc="AU" cbt="Complete Your Purchase" ]

Notes:

  1. Be sure to remove the space after the “[" and before the "]” to make the code work
  2. Change email to your paypal email address
Print Friendly

How do I add an Add To Cart button with the Enhanced Paypal Shortcodes plugin?

To create an Add To Cart button on your site, insert the shortcode whereever you want to appear.

Supported parameters are:

type = addtocart
*Required

email = the email address of the paypal account
*Required

itemno = A unique identifier for your product / service
*Required

name = Description of product / service
*Required

amount = the amount to charge (for Paynow & Add To Cart buttons only)
*Required

display = Display the contents of the PayPal Shopping Cart to the buyer. If set, the shopping cart will be displayed after an item is added.  If not set, the item will be added to the cart only.

qty = The quantity to pay for or add to cart.
ask  will let the purchaser specify how many they wish to purchase or add
or set the number greater than 0 to force a specific quantity
If omitted from the shortcode, a quantity of 1 is used.

nonote = Prompt payers to include a note (Paynow buttons only)
0 is show the note box and prompt the user
1 is hide the note box and do not prompt the user
Default is 0

shipping = the amount of shipping to charge per item

shipping2 = the amount of shipping to charge for each extra item purchased.

imageurl = The location of the image for the button. Use full web address for the image – e.g http://domainname.com/mybuynowbutton.jpg.
Default is https://www.paypalobjects.com/en_AU/i/btn/btn_cart_LG.gif

imagewidth = the width of the paypal image
Default is 100% of the image specified

noshipping = Prompt for Shipping address
Options:
0 is prompt, but don’t require
1 is don’t prompt
2 is prompt and require the shipping address
Default is 0

currencycode = The currency for the transaction
Australian Dollar AUD
Canadian Dollar CAD
Czech Koruna CZK
Danish Krone DKK
Euro EUR
Hong Kong Dollar HKD
Hungarian Forint HUF
Israeli New Sheqel ILS
Japanese Yen JPY
Mexican Peso MXN
Norwegian Krone NOK
New Zealand Dollar NZD
Polish Zloty PLN
Pound Sterling GBP
Singapore Dollar SGD
Swedish Krona SEK
Swiss Franc CHF
U.S. Dollar USD
Default is USD

rm = The return method. This will only work if returnurl is also set. This variable is often required by membership type software
0 – all shopping cart transactions use the GET method
1 – the payer’s browser is redirected to the return URL by the GET method, and no transaction variables are sent
2 – the payer’s browser is redirected to the return URL by the POST method, and all transaction variables are also posted
Default is 0.

notifyurl = The URL to send payment advice too. Often required for IPN or other notifications. If this parameter is not used, no notifyurl value is added to the button

returnurl = The URL to which the payer’s browser is redirected after completing the payment; for example, a URL on your site that displays a “Thank you for your payment” page.
Default – The browser is redirected to a PayPal web page.

cancelurl = The URL to which the payer’s browser is redirected if the purchaser cancels the payment transaction before completing the process

scriptcode = the link to any script code that you may need to include.  e.g For Jrox JAM, some script code is added to the paypal buttons. Usage /foldername/scriptcode.php
If this parameter is not used, no notifyurl value is added to the button

pagestyle = The custom payment page style for checkout pages. Allowable values:
paypal – use the PayPal page style
primary – use the page style that you marked as primary in your account profile
page_style_name – use the custom payment page style from your account profile that has the specified name
Default is primary if you added a custom payment page style to your account profile. Otherwise, the default is paypal.

cbt = Sets the text for the Return to Merchant button on the PayPal Payment Complete page. For Business accounts, the return button displays your business name in place of the word “Merchant” by default. For Donate buttons, the text reads “Return to donations coordinator” by default.
NOTE: The returnurl variable must also be set.

cn = Label that appears above the note field on the Check Out page. This value is not saved and will not appear in any of your notifications. If omitted, the default label above the note field is “Add special instructions to merchant.” The cn variable is not valid with Subscribe buttons or if you include nonote=”1″.

lc = Sets the payer’s language for the billing information/log-in page only.
The default is US. For allowable values visit: https://cms.paypal.com/au/cgi-bin/?cmd=_render-content&content_ID=developer/e_howto_html_countrycodes

Formatting All Buttons

The plugin will wrap the paypal button in a <div> tag.  The formatting options available are:

divwidth = the width of the div.  This should be at least the width of the image.
Default is 100%

textalign = the alignment of the image / text within the div
Allowable values:
left – text is left justified
right – text is right justified
center – text is centered
Default is none, the alignment is taken from the theme or page

float = position of the div on the page
left – the div ‘floats’ on the left
right – the div ‘floats’ on the right
Default – if this value is missing, the div is centered on the page according to the divwidth parameter

marginleft = the amount of space between the div and the text to the left of the div (particularly good to use when using float=right)
Default – if this value is missing, the page format is used

marginright = the amount of space between the div and the text to the right of the div
(particularly good to use when using float=left)
Default – if this value is missing, the page format is used

margintop = the amount of space to the line above the div
Default is 10px

marginbottom = the amount of space to the line below the div
Default is 10px

Button Formatting
As images are inserted into the plugin code, these images will ‘pick up’ the formatting for images specified in the theme. This often causes issues with borders or backgrounds being added.

To allow more flexibility to the site owner, a class has been added to each of the images used so that the site owner can override any default formatting.

Image Classes:

Pixel tracking image

The shortcode will add a ‘placeholder’ Paypal image that is 1px wide by 1px tall into the button.  The code adds a class of “ppalholder” to this image.  This will allow site owners to add the class to their theme styles and remove any borders that cause the image to be ‘visible’.

Use the style format of:

.ppalholder { };

in your themes stylesheet or custom stylesheet to change any default formats for this image.

Class added to Buy Now, Add To Cart, Hosted or Subscribe button

The code will add the class “ppalbtn” to the actual image embedded on the page to allow for more formatting choices.

Use the style format of:

.ppalbtn { };

in your themes stylesheet or custom stylesheet to change any default formats for this image.

Example

[ paypal type="addtocart" amount="12.99" email="youremail@domainname.com" itemno="12345657" name="Description" noshipping="1" nonote="1" qty="1" shipping="4.00" shipping2="1.00" currencycode="USD" display="1" imageurl="https://www.paypal.com/en_US/i/btn/btn_paynowCC_LG.gif" rm="2" notifyurl="http://notifyurl.com" returnurl="http://returnurl.com" scriptcode="scriptcode" imagewidth="100px" pagestyle="paypal" lc="AU" cbt="Complete Your Purchase" ]

To allow purchasers to set the number they wish to purchase:
[ paypal type="addtocart" amount="12.99" email="youremail@domainname.com" itemno="12345657" name="Description" noshipping="1" nonote="1" qty="ask" shipping="4.00" shipping2="1.00" currencycode="USD" display="1" imageurl="https://www.paypal.com/en_US/i/btn/btn_paynowCC_LG.gif" rm="2" notifyurl="http://notifyurl.com" returnurl="http://returnurl.com" scriptcode="scriptcode" imagewidth="100px" pagestyle="paypal" lc="AU" cbt="Complete Your Purchase" ]

Notes:

  1. Be sure to remove the space after the “[" and before the "]” to make the code work
  2. Change email to your paypal email address
Print Friendly

How do I add a Hosted Paypal button with the Enhanced Paypal Shortcodes plugin?

To create a Hosted Paypal button on your site, insert the shortcode whereever you want to appear.

Supported parameters are:

type = hosted
*Required

buttonid = the button id number from your paypal code
*Required

imageurl = The location of the image for the button. Use full web address for the image – e.g http://domainname.com/mybuynowbutton.jpg.
Default
is https://www.paypal.com/en_AU/i/btn/btn_subscribeCC_LG.gif

imagewidth = the width of the paypal image
Default is 100% of the image specified

Formatting All Buttons

The plugin will wrap the paypal button in a <div> tag.  The formatting options available are:

divwidth = the width of the div.  This should be at least the width of the image.
Default is 100%

textalign = the alignment of the image / text within the div
Allowable values:
left – text is left justified
right – text is right justified
center – text is centered
Default is none, the alignment is taken from the theme or page

float = position of the div on the page
left – the div ‘floats’ on the left
right – the div ‘floats’ on the right
Default – if this value is missing, the div is centered on the page according to the divwidth parameter

marginleft = the amount of space between the div and the text to the left of the div (particularly good to use when using float=right)
Default – if this value is missing, the page format is used

marginright = the amount of space between the div and the text to the right of the div
(particularly good to use when using float=left)
Default – if this value is missing, the page format is used

margintop = the amount of space to the line above the div
Default is 10px

marginbottom = the amount of space to the line below the div
Default is 10px

Button Formatting

As images are inserted into the plugin code, these images will ‘pick up’ the formatting for images specified in the theme. This often causes issues with borders or backgrounds being added.

To allow more flexibility to the site owner, a class has been added to each of the images used so that the site owner can override any default formatting.

Image Classes:

Pixel tracking image

The shortcode will add a ‘placeholder’ Paypal image that is 1px wide by 1px tall into the button.  The code adds a class of “ppalholder” to this image.  This will allow site owners to add the class to their theme styles and remove any borders that cause the image to be ‘visible’.

Use the style format of:

.ppalholder { };

in your themes stylesheet or custom stylesheet to change any default formats for this image.

Class added to Buy Now, Add To Cart, Hosted or Subscribe button

The code will add the class “ppalbtn” to the actual image embedded on the page to allow for more formatting choices.

Use the style format of:

.ppalbtn { };

in your themes stylesheet or custom stylesheet to change any default formats for this image.

Example

[ paypal type="hosted" buttonid="1234456" imageurl="https://www.paypal.com/en_US/i/btn/btn_paynowCC_LG.gif" imagewidth="100px"  ]

Notes:

  1. Be sure to remove the space after the “[" and before the "]” to make the code work
  2. Change email to your paypal email address
Print Friendly

Can I change the size of my paypal button?

You can change the size of your button image using the imagewidth parameter in the shortcode.

For example, adding:

imagewidth=”200px”

will set the image to 200px wide.

Print Friendly

Can I specify my own image to use for the

Yes. The plugin allows you to specify the image you want to use for all button types.

To specify an image add the following parameter to your shortcode:

imageurl=”http://yourdomainname.com/pathto/yourimage.ext”

If the imageurl parameter is not specified in the shortcode, the default images used are:

PayNow buttons: https://www.paypal.com/en_US/i/btn/btn_paynowCC_LG.gif

 

Subscription buttons: https://www.paypal.com/en_AU/i/btn/btn_subscribeCC_LG.gif

 

Hosted buttons: https://www.paypal.com/en_AU/i/btn/btn_subscribeCC_LG.gif

 

Add To Cart buttons: https://www.paypalobjects.com/en_AU/i/btn/btn_cart_LG.gif

Print Friendly

I get a small square next to my Paypal Button, how do I fix this?

The paypal code inserts a ‘placeholder’ Paypal image that is 1px wide by 1px tall into the button. Many themes add a default border to images, and this border is also added to the paypal placeholder image.

We’ve added a class of “ppalholder” to the placeholder image so that a siteowner can format the image (like removing borders).

To remove borders on this image, add the following line to the themes style.css file, or custom css styling options:

.ppalholder {border:none; }

 

Print Friendly

How do I request a new feature?

You can request a new feature to this plugin by adding a comment to this page. We won’t guarantee that all requests can be addressed, but we will add requests to the wishlist for the next version of the plugin.

Print Friendly

  • Kico Zaninetti

    is there any way to use Paypal sandbox to make some tests with this plugin??

    Thank you.

    Kico Zaninetti

    • http://askcharlyleetham.com Charly Leetham

      Hi Kico,

      There is currently no way to use the Sandbox feature with the plugin, but we’re considering that for the next release.

      Charly.

  • http://twitter.com/edtv82 follow your feet

    Is there anyway for Sandbox to work and also for non redirect to paypal?

    • http://askcharlyleetham.com Charly Leetham

      The plugin does not currently support the Paypal sandbox.  This feature has been added to the list of requested enhancements to be considered in the next release.

  • Dale Strickland-Clark

    I need a “buy now” button with two options e.g. [single session £30] [double session £50]. You can buy one or the other. I also need a text field.  Can I do this? Thanks.

    • http://askcharlyleetham.com Charly Leetham

      Hi Dale,

      The best way to achieve this is to use the Hosted Buttons option on Paypal, and add the options in that way.  You can then use the enhanced paypal shortcode plugin to display your button (you’ll need the hosted button id from within paypal).

      I’m not certain if the editor has the ability to add a text field – depending on what you want to do, you may find the ‘nonote’ parameter on the buynow buttons suits your needs.

  • UnkleFrank

    I’m with Dale. I need a “buy now” button with the option to purchase more than one. I’ve tried the “ask=” and “qty=” with null, 1, 2, with no success. Any suggestions?
    Thanks,
    Frank

    • http://askcharlyleetham.com Charly Leetham

      Hi UnkleFrank,

      To allow purchasers to set the number of items they wish to purchase, set qty=”ask” in your shortcode.  I’ve updated the documentation to clarify this.

      A sample of the shortcode is:
      [ paypal type="paynow" amount="12.99" email="youremail@domainname.com"
      itemno="12345657" name="Description" noshipping="1" nonote="1" qty="ask"
      shipping="4.00" shipping2="1.00" currencycode="USD"
      imageurl="https://www.paypal.com/en_US/i/btn/btn_paynowCC_LG.gif" rm="2"
      notifyurl="http://notifyurl.com" returnurl="http://returnurl.com"
      scriptcode="scriptcode" imagewidth="100px" pagestyle="paypal" lc="AU"
      cbt="Complete Your Purchase" ]

      Remember to remove the space after the “[" and before the "]“

      • UnkleFrank

        Hi Charly
        Thanks for the info. That did the trick! I had the double quotes in the wrong place.
        Frank

  • http://twitter.com/jawzofdesign john wilson

    Hi Im trying to add a button but it keeps saying their is a problem with my e-mail address? Do i include both my email address & the website? Im a bit confused why it isnt working.
    Thanks for any help,
    John

  • andss

    I have a paypal button with a drop-down that the user clicks to select a subscription plan that they want. Then they click Subscribe. I’m now sure how to put the code into my WP page. Can you help me? (I got the other more simple buttons to work)

    Subscription Plans
        text here 1
        text here 2
        text here 3
        text here 4

  • LizM

    Hi,

    I’m trying to get this plug-in set-up for a client who is having issues with PayPal buttons in wordpress.  This is the code I’m using:

    [ paypal type="paynow" amount="147.00" email="bethaney@revitalizeyourspirit.com" itemno="123456" name="Testing the Water" noshipping="1" nonote="1" currencycode="USD" qty="1" imageurl="https://www.paypalobjects.com/en_US/i/btn/btn_buynowCC_LG.gif" rm="2" returnurl="http://www.bethaneylong.com" imagewidth="100px" ](minus the spaces between the brackets)

    Can you tell me what I’m missing here?  There is nothing on the page where the code is supposed to be.

    This is the page it is on: http://bethaneylong.com/coaching-packages/

    Thanks in advance for any assistance!

    Liz Martinez

    • http://askcharlyleetham.com Charly Leetham

      Hi LizM,

      The image for the paypal button isn’t displaying.  The actual button is being inserted but it’s not seeing the image url paramater.

      Please ensure that the imageurl=”https://www.paypalobjects.com/en_US/i/btn/btn_buynowCC_LG.gif” has been entered correctly, and that there are no extra spaces around it.

      Otherwise, please forward the code you’re using in an email to me – you can contact us at http://askcharlyleetham.com/about/contact-us, and provide the code there.  That way, I”ll see the whole code correctly.

      • LizM

        the image url is right – that was the first thing I tested.  And the blank space it leaves doesn’t have a link — it’s just white space on the page, so it doesn’t seem like anything is actually posting … 

        I’ve e-mailed the exact code … .

        Thanks!!!!

        Liz

        • Jasonb

          Hi Liz – did you find a solution to this? – I have the same problem!!!

          • http://askcharlyleetham.com Charly Leetham

            Hi Jason, we’re still investigating the issue.  Can you post your URL where this problem is occuring – and can you tell which version of the plugin is installed please? Thanks!

          • Jasonb

            Hi Charly. Yes i am using the latest version of the plugin – 0.5a. I am using the latest version of wordpress 3.3.1

            I have put the script in the following page;

            http://bit.ly/wggraF

            This is the code I have inserted in wordpress in that page;
            [paypal type="paynow" amount="12.99" email="youremail@domainname.com" itemno="12345657" name="Description" noshipping="1" nonote="1" qty="1" shipping="4.00" shipping2="1.00" currencycode="USD" imageurl="https://www.paypal.com/en_US/i/btn/btn_paynowCC_LG.gif" rm="2" notifyurl="http://notifyurl.com" returnurl="http://returnurl.com" scriptcode="scriptcode" imagewidth="100px" pagestyle="primary" lc="AU" cbt="Complete Your Purchase"]

            any ideas why it is not visible??

            Thanks Jason

  • Dan

    can you explain this error message

    Bad order (PayPal says it’s invalid). Add/remove ‘paypal’ subdomain in your button code or switch to sandbox/live in the settings.

    [paypal type="subscribe" email="email@wesite.com" itemno="SubLev2" name="Subscription Level 2 ($49/mo)" noshipping="0" currencycode="USD" textalign="center" imageurl="http://website.com/wp-content/uploads/2012/02/subscribebutton.png" a3="49" p3="1" t3="M" src="1" sra="1" rm="2" modify="1" returnurl="http://website.com/thanks" cancelurl="http://website.com" imagewidth="100px" pagestyle="paypal" lc="AU" cbt="Complete Your Purchase"]

  • http://profiles.google.com/harkins.joe Joe Harkins

    I too am frustrated, but I am the first to admit, it’s my own incompetency in writing code. I am doing pro bono work for a local charity’s web site. I have a button defined using code from PayPal but can’t get it display properly (see: 
    http://iinj.org/event/14th-annual-american-dream-celebration-fundraising-dinner/ ). 

    I have tried to follow the instructions on using the shortcode but it says, “simply place the shortcode where you want your paypal button to appear and enter the parameters you need.”In my experience, instructions that start out with “simply” rarely are, at least for me.I know how to paste shortcode. That is simple. I know how to choose where to place it. That too is simple. But “simple” falls apart as soon as I get to the second part of that advice, “enter the parameters you need.”  I am not sure exactly what parameters I need. Would that be the code PayPal gave me? (or maybe not. I’m not sure).Exactly what code and exactly where it goes is not simple for me.  Would someone please tell me that? I will be sincerely grateful.Thanks

    • http://askcharlyleetham.com Charly Leetham

       Joe, please read the FAQ’s that are provided on this page: thewpwarrior.com/wordpress-plugins-by-the-wp-warrior/wordpress-plugin-enhanced-paypal-shortcodes/  to determine how to enter the code.  If you read the FAQ’s they explain exactly what parameters you need for the type of button you are using, and even provide examples that you can cut and paste to modify. 

      • http://profiles.google.com/harkins.joe Joe Harkins

        Thank you for the prompt reply. I really appreciate that. If you look  at my message you will see that I already have read that page very carefully and I even quote the words that do not work for me. I know that some kind of short code goes in front of the code that PayPal gave me but I do not see a similar example on that instruction page. 

        The only place I can find anything that seems even remotely similar to my PayPal button is the issue raised below by “andss” and there is no answer posted for his question. Both his issue and mine 
        start with <form action and there is nothing in the examples of the instruction page like that. 

        It would probably help both him and me – and others in the future, if you would respond with adding the 
        necessary code to the start and end of following:

         

        Number of Tickets

        One Person $200.00 USD 2 Persons $400.00 USD 3 Persons $600.00 USD 4 Persons $800.00 USD 5 Persons $1,000.00 USD 6 Persons $1,200.00 USD 7 Persons $1,400.00 USD 8 Persons $1,600.00 USD 9 Persons $1,800.00 USD 10 Persons $2,000.00 USD

        And, in advance, thank you.

        • http://askcharlyleetham.com Charly Leetham

          Hi Joe,

          The “paramaters” for each type of button this plugin supports are detailed under each FAQ item.  If the parameter isn’t specified, then it isn’t supported.

          It would seem, although you haven’t said it, that you are trying to input a paypal button with options. 

          The ONLY buttons this plugin currently supports is:
          1. Hosted
          2. Buy Now
          3. Subscription

          It does not support options.

          You can try to use a hosted button (NOTE:  I haven’t tested that with Options) and see how that goes. 

          You need to review the FAQ item on the support page labelled:
          How do I add a Hosted Paypal button with the Enhanced Paypal Shortcodes plugin?

          to find the full usage and parameters to use in the code.

          If a hosted button does not work, this plugin is not the right one for you to use.

          • http://profiles.google.com/harkins.joe Joe Harkins

            Thank you for clarifying that. I appreciate the help. 

  • J_a_dwight

    You need a donations support… your plugin conflicts with the plugin called paypal donations… it disables that plugin… so you need to either fix the conflict or add support… 

  • MM

    Can I specify shipping regions?  ie a set price for international shipping and a set price for domestic?

  • Luther Strike

    Nice plugins..i use this one with my blog..http://englishmadeeasy4u.com

  • S2c8academy

    Great plugi thanks, can i put the button in the center of the page?

  • Knikky224

    Question: How can I track my inventory?

    • http://askcharlyleetham.com Charly Leetham

      Hi Kinkky224, you can’t track inventory with the current version of the plugin.

  • jose

    Hi 

    It does not work the download of version 0.5

    Thx

    • http://askcharlyleetham.com Charly Leetham

      Sorry Jose – please try now. We had to do an update on the doco and WordPress temp. delisted the plugin.  It’s all fixed now.

  • Coder

    None of the download working. Please provide link

    • http://askcharlyleetham.com Charly Leetham

      Sorry for the inconvenience – we had to do an update on the doco and WordPress temp. delisted the plugin.  It’s all fixed now.

  • http://askcharlyleetham.com Charly Leetham

    Hello everyone,  Wordpress temporarily delisted the plugin due the domain we used in the doco.  That’s all been fixed and the plugin can be downloaded again.  Taking suggestions for the next revision…..

  • Shloime Fellig

    Is there a way to set different shipping prices for different items?

  • Andrew Parnham

    my customes keep getting charged in USD when I need AUD. The item is AUD in paypal… HELP ME PLEASE!

    • http://askcharlyleetham.com Charly Leetham

      Hi Andrew, It sounds like you are using a Buy Now or Subscription button, not a hosted paypal button. If you’re using a Hosted paypal button and you’re clients are still being charged in USD, then you’ll need to speak to Paypal.

      If you are using a Buy Now or Subscription button, make sure you have
      currencycode=AUD in your shortcode values. ie:

      For a ‘buy now’ button:
      [ paypal type="paynow" amount="12.99" email="youremail@domainname.com" itemno="12345657" name="Description" noshipping="1" nonote="1" qty="1" shipping="4.00" shipping2="1.00" currencycode="AUD" imageurl="https://www.paypal.com/en_US/i/btn/btn_paynowCC_LG.gif" rm="2" notifyurl="http://notifyurl.com" returnurl="http://returnurl.com" imagewidth="100px" pagestyle="paypal" lc="AU" cbt="Complete Your Purchase" ]

      (Be sure to remove the space after the ‘[' and before the ']‘ and change the email to your paypal email).

      • Andrew Parnham

        Umm, sorry if i sound dumb but whats a hosted button? I created a button in paypal, then copied the id into your code?

        • http://askcharlyleetham.com Charly Leetham

          If you are using a paypal created button and used code similar to this:
          [ paypal type="hosted" buttonid="1234456" imageurl="https://www.paypal.com/en_US/i/btn/btn_paynowCC_LG.gif" imagewidth="100px" ]

          and paypal is setting the price to USD you need to look at the setup in Paypal – it’s all done there.

  • klwk

    I am testing this plugin but seems cannot support Chinese characters in the “itemno” and “Description” field, the paypal page says the character code is not correct. Any help on this?

  • drayscherm

    I just installed this plugin on a WP 3.4.2 site and it does not work at all. I guess it is not compatible with WP 3.4.2. Will it be, and when?
    Thanks….Duane

    • http://askcharlyleetham.com Charly Leetham

      Duane, we have this running on several sites that are using 3.4.2, and it works well. Unfortunately a description of “it does not work at all” doesn’t allow us to assist you. Could you advise what you mean by this?

  • Nig

    Is it possible to use this to have two items (a bundle) with the one button? If so, how is it done??

    • http://askcharlyleetham.com Charly Leetham

      Hi Nig, You would be best to create a button that uses one item number as your bundle.

  • Brandon Todd

    I do not know how to change my paypal recurring price?? Im not a programmer and didnt install the plug-in. but i need to change the price.

    thanks

    • http://askcharlyleetham.com Charly Leetham

      Hi Brandon, You need to edit the page or post where your subscription button is. There will be the shortcode for the paypal button, it will look something like:

      [ paypal type="subscribe" email="youremail@domainname.com" itemno="12345657" name="Description" noshipping="1" currencycode="USD" imageurl="https://www.paypal.com/en_US/i/btn/btn_paynowCC_LG.gif" a1="1" p1="7" t1="D" a2="3" p2="1" t2="M" a3="47" p3="1" t3="M" rm="2" modify="2" notifyurl="http://notifyurl.com" returnurl="http://returnurl.com" scriptcode="scriptcode" imagewidth="100px" pagestyle="paypal" lc="AU" cbt="Complete Your Purchase" ]

      To change your recurring price, you need to edit to the A3 value in the shortcode – that’s the dollar amount you are charging.

      The other values for the recurring payments are:

      Trial Period 1:
      a1 = The value to charge for the first trial period
      p1 = The duration of the first trial.
      t1 = The units of duration.
      D for Days, allowable entries for p1: 1 to 90
      W for Weeks, allowable entries for p1: 1 to 52
      M for Months, allowable entries for p1: 1 to 24
      Y for Years, allowable entries for p1: 1 to 5

      Trial Period 2:
      a2 = The value to charge for the second trial period
      p2 = The duration of the second trial.
      t2 = The units of duration.
      D for Days, allowable entries for p2: 1 to 90
      W for Weeks, allowable entries for p2: 1 to 52
      M for Months, allowable entries for p2: 1 to 24
      Y for Years, allowable entries for p2: 1 to 5

      The full subscription Payment:
      a3 = The value to charge
      p3 = The duration between charging
      t3 = The units of duration.
      D for Days, allowable entries for p3: 1 to 90
      W for Weeks, allowable entries for p3: 1 to 52
      M for Months, allowable entries for p3: 1 to 24
      Y for Years, allowable entries for p3: 1 to 5

      Hope that helps.

  • http://askcharlyleetham.com Charly Leetham

    The returnurl and notifyurl will be determined by any integration you are using.

    If you are using the shortcode to take payment and redirect purchasers to a thank you page, the returnurl will be the full url of the thank you page you have set up. If the returnurl is not set,Paypal will leave purchasers on the successful payment page on their site.

    The notifyurl is used, typically, for Instant Payment Notification. We use it when integrating with Wishlist Member or sending notifications to a 3rd party application like iDevAffiliate.

    Neither needs to be set, but I highly recommend that you set up some form of Thank you page for your purchasers that tells them what will happen next.

  • Bruce Steinhardt

    I kept getting a Paypal error message with the Hosted option saying the submission was incomplete or in error. After looking at the Paypal generated code, I changed the PHP source code for ‘case “hosted”:’ in two places to match what Paypal wanted and now it works with this simpler form of entry in my WordPress page: [paypal type="hosted" buttonid="XXXXXXX"]

    Here are the PHP changes:
    1 – <form name="" was changed to <form target="paypal"
    2 – after the } else {, I replaced the two src= references to /en_AU/ with the src's in my paypal code that pointed to "https://www.paypalobjects.com/en_US/

  • David Butland

    I am trying to set up some PayPal buttons.
    What is the meaning of the field email=”….”?
    I specify an email address associated with our PayPal account, and get the reply:
    We cannot process this transaction because there is a problem with the PayPal email address supplied by the seller. Please contact the seller to resolve the problem.
    I’ve tried other email addresses and get a similar reply.

    This is maybe the wrong way to contact you. If so, let me know something more appropriate.

    David Butland

    • http://askcharlyleetham.com Charly Leetham

      Hi David, the email=” ” is definitely the address you have associated with the Paypal Account – the account has to be able to receive money, so check that you are using a Business account, and the email address you’re using is VERIFIED.

      Also, make sure there are no spaces or unprintable characters in the email address string. I do this by pasting the address into a text document (notepad or notepad++ on a PC) and removing any spaces before or after the address, then copying it out again.

  • Xu2steve

    How can I test it with paypal?

    • http://askcharlyleetham.com Charly Leetham

      We test by using a $0.10 payment from another account (we have our business account, and personal accounts). We haven’t implemented the paypal sandbox functionality as yet.

  • Shah

    Having trouble getting button to show up for subscribe button with 30 day trial, main subscription, recurring billing – here’s my code (changed my email address for obvious reasons):

    [ paypal type="subscribe" email="" itemno="Sub1" name="Basic CPR City Training Provider Network Membership" noshipping="1" currencycode="USD" imageurl="https://www.paypal.com/en_US/i/btn/btn_paynowCC_LG.gif" a1="0" p1="30" t1="D" a3="15" p3="30" t3="D" sra="1" modify="2" notifyurl="http://notifyurl.com" returnurl="http://returnurl.com" scriptcode="scriptcode" imagewidth="100px" pagestyle="paypal" lc="US" cbt="Complete Your Purchase" ]

    Thank you for your help!

  • Shah

    Nevermind I think I figured it out

  • eve

    Hi can shortcode be used with your paypal shortcode?

  • http://twitter.com/irishmark23 Mark Robinson

    Is there a way to make the button open a new tab?

Powered by WishList Member - Membership Site Software