0
votes

i had created a custom cart and i want to add pay pal button in it how should i integrate it with my cart. I got this form code for pay pal but i cant understand that where are we passing the papal's user account id and what is 'cmd' and 'hosted_button_id' for. I am really new to paypal i just want to add a button and send client purchase information to my paypal account.

<form action="https://www.paypal.com/cgi-bin/webscr" method="post">


<input type="hidden" name="cmd" value="_s-xclick">
<input type="hidden" name="hosted_button_id" value="ZEFZFYBY2SZB8">
<input type="image" src="https://www.paypal.com/en_US/i/btn/btn_paynowCC_LG.gif" border="0"        name="submit" alt="PayPal - The safer, easier way to pay online!">
<img alt="" border="0" src="https://www.paypal.com/en_US/i/scr/pixel.gif" width="1" height="1">
</form>
1
if you created it via the paypal "Create PayPal payment button" page, there is nothing you need to do other than paste the code on your site. - user557846

1 Answers

0
votes

If you're trying to tie PayPal into your custom cart you should probably look at the cart upload method.

If you're familiar with API's you could look at Express Checkout, too. My PHP class library would help you integrate Express Checkout pretty easily.