php - Intergrating Paypal into my shopping cart -


i have developed own shopping cart , want integrate paypal once user click checkout button.

i need pass item details on paypal based on customer has added cart. believe code below checkout button nothing when clicked on. tried reason form doesn't see checkout button!

<?php $checkout = "<form action='https://www.paypal.com/cgi-bin/webscr' method='post'>"; $checkout .= "<input type='hidden' name='cmd' value='_cart'><input type='hidden' name='upload' value='1'>"; $checkout .= "<input type='hidden' name='business' value='craig@biosboss.com'>";  $count = 1; $checkout .= "<input type='hidden' name='item_name_" + $count + "' value='" + $item['name']+ "'>"; $checkout .= "<input type='hidden' name='item_number_" + $count + "' value='" + $count + "'>"; $checkout .= "<input type='hidden' name='quantity_" + $count + "' value='" + $item['qty'] + "'>"; $checkout .= "<input type='hidden' name='amount_" + $count + "' value='" + $item['price'] + "'>"; $count = $count + 1; ?>  <input type='hidden' name='currency_code' value='gbp'> <input type='hidden' name='lc' value='gb'> <input type='hidden' name='return' value='http://www.biosboss.com/checkout?confirm=confirm&confirmterms=on'> <input type='hidden' name='cancel_return' value='http://www.biosboss.com/checkout'> <input type='hidden' name='notify_url' value='http://www.biosboss.com/checkout?confirm=confirm&confirmterms=on'> <input class='securepaymentbutton' type='submit' value='here'> <?php $checkout .= "</form>"; ?> 


Comments

Popular posts from this blog

PySide and Qt Properties: Connecting signals from Python to QML -

c# - DevExpress.Wpf.Grid.InfiniteGridSizeException was unhandled -

scala - 'wrong top statement declaration' when using slick in IntelliJ -