I am creating a web site and having a paypal checkout button. The site is made in PHP. I found this paypal code in paypal’s web site.
<form name="_xclick" target="paypal" action="https://www.paypal.com" method="post">
<input type="hidden" name="cmd" value="_cart">
<input type="hidden" name="business" value="me@mybusiness.com">
<input type="hidden" name="currency_code" value="USD">
<input type="hidden" name="item_name" value="HTML book">
<input type="hidden" name="amount" value="24.99">
<input type="image" src="http://www.paypal.com/en_US/i/btn/btn_cart_LG.gif" border="0" name="submit" alt="Make payments with PayPal - it's fast, free and secure!">
<input type="hidden" name="add" value="1">
</form>
Is <input type="hidden" name="business" value="me@mybusiness.com"> referring to the PayPal e-mail address where the amount will be credited after the checkout is successful?
Also is there a way I can test this button without actually paying through paypal?
Thanks
Yes, that email address is the recipient. Most people, however, would use their PayPal Business ID instead, so as not to have their email address publicly posted where spambots can see it.
As for testing a button, if clicking it takes you to the correct checkout page, you can test everything up to the final “send money” button without actually paying anything. You can also use the PayPal Sandbox for testing things like IPN.