$item->set('shipping', 1.5); $item->set('handling', 1); # this is overriden by "handling_cart" $paypal->addItem($item); # Add second item $item = new GoPayPalCartItem(); $item->set('item_name', 'Front-end Drupal'); $item->set('item_number', 11); $item->set('amount', 9.99); $item->set('quantity', 1); $item->set('shipping', 1.5); $item->set('handling', 1); # this is overriden by "handling_cart" $paypal->addItem($item); # If you set your custom button here, PayPal Pay Now button will be displayed. $paypal->setButton('<button type="submit">Pay via PayPal - The safer, easier way to pay online!</button>'); echo $paypal->html(); if (sizeof($_POST)) { echo '<pre>'; print_r($_POST); echo '</pre>'; } ################### # Using getHtml() # ################### # If you want to use other HTML between paypal form opening and close tag, use getHtml(), but write </form> by yourself /* $paypal = new GoPayPalTHIRD_PARTY_CART); $paypal->sandbox = true; $paypal->openInNewWindow = true; $paypal->set('business', '*****@*****.**');