View Full Version : Embedding button for Paypal form

11-15-2011, 06:24 PM
I need to embed the button code below into a Paypal form. Could anyone just show me where the button code goes and if I need to add any other code (input, etc) and where.

Button Code:
<div class="BUY_AREA" style="margin: auto;"> <div style="margin: 27px 17px 37px; border: 4px dashed #cc0000;"> <div style="padding: 17px;"> <div style="margin: 3px; padding: 7px;"> <h3 style="text-align: center; padding-bottom: 27px;">Get It Here</h3> <div style="text-align: center;"><a style="text-decoration: none;" href="[LINK D5A7F]"><img src="http://mywebsite.com/fb/wp-content/plugins/wp-salesengine-plugin/globals/buy_area/button/default_car..." alt="" border="0" /></a></div> <div style="text-align: center;"><a style="text-decoration: none;" href="[LINK D5A7F]"><img src="http://mywebsite.com/fb/wp-content/plugins/wp-salesengine-plugin/globals/buy_area/seals/cards.gif" alt="" border="0" /></a></div>

In fact, the part of the actual button is:
img src="http://mywebsite.com/fb/wp-content/plugins/wp-salesengine-plugin/globals/buy_area/button/default_cart.png"

Paypal form:
<form method="post" action="https://www.paypal.com/cgi-bin/webscr" name="paypal_auto_form"/>
<input type="hidden" name="rm" value="2" />
<input type="hidden" name="cmd" value="_xclick" />
<input type="hidden" name="business" value="YOURPAYPALEMAILID" />
<input type="hidden" name="return" value="http://www.yourdomain.com/returnurl" />
<input type="hidden" name="cancel_return" value="http://www.youdomain.com/" />
<input type="hidden" name="notify_url" value="http://yourdomain.com/smp/index.php/gateways/ppdirect/ipn/13" />
<input type="hidden" name="custom" value="" />
<input type="hidden" name="currency_code" value="USD" />
<input type="hidden" name="item_name" value="YOUR PRODUCT NAME" />
<input type="hidden" name="item_number" value="PRODUCT_ID" />
<input type="hidden" name="amount" value="AMOUNT" />
<input type="submit" name="pp_submit" value="Pay Now" />

Thanks you

11-15-2011, 09:40 PM
At first glance, it's not possible. The "button code" you show is really a link to whatever "[LINK D5A7F]" resolves to, which I'm assuming is paypal with your variables added. So adding that code to your paypal form will not include the paypal form fields when you click on it.

11-15-2011, 11:33 PM
Hi, Thank you for your answer.
The button belongs to Wordpress Sales Engine, a plugin within Wordpress that has optional payment buttons to place on the pages.
The code you mention is not linking to Paypal but to that same Buy Area (the area within the dots). See the whole area here:
Do you mean to say in order to use it for this Paypal form I need to have only the button?

11-16-2011, 01:19 PM
it's difficult to give you a direct answer, because I do not know the WordPress Sales Engine plugin, and there is a shortcode that I don't know what it resolves to ([LINK D5A7F]). If you just want to use the image with the paypal form instead of the normal submit button, this site talks about image replacements for submit buttons: