简体   繁体   中英

PayPal integration in custom php cart

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>

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM