SuzH Posted September 29, 2006 Posted September 29, 2006 Please can someone help with updating the code within the paypal,php so that one can send individual items, amounts and prices to paypal. See code below. Any tips would be greatful! Need to know how to write the php to pull the items from the cart and send to paypal? is it $products etc? $process_button_string = tep_draw_hidden_field('cmd', '_xclick') . tep_draw_hidden_field('business', MODULE_PAYMENT_PAYPAL_ID) . tep_draw_hidden_field('item_name', [WHAT TO PUT HERE]) . tep_draw_hidden_field('amount', number_format(($order->info['total'] - $order->info['shipping_cost']) * $currencies->get_value($my_currency), $currencies->get_decimal_places($my_currency))) . tep_draw_hidden_field('shipping', number_format($order->info['shipping_cost'] * $currencies->get_value($my_currency), $currencies->get_decimal_places($my_currency))) . tep_draw_hidden_field('currency_code', $my_currency) . tep_draw_hidden_field('return', tep_href_link(FILENAME_CHECKOUT_PROCESS, '', 'SSL')) . tep_draw_hidden_field('cancel_return', tep_href_link(FILENAME_CHECKOUT_PAYMENT, '', 'SSL')); Seriously bugging on this one...HELP!!!! >_< Suz Quote
Guest Posted September 29, 2006 Posted September 29, 2006 Try this link: Paypal Ad variables These instructions allow you to pass the name, price, order id, ect. so it doesn't come up as (your store name) Though it does not pass a total price into the payment total within paypal. That is what I can't figure out. Quote
SuzH Posted September 29, 2006 Author Posted September 29, 2006 Hi, Thanks. I'm going to give that a whirl... Suz Try this link:Paypal Ad variables These instructions allow you to pass the name, price, order id, ect. so it doesn't come up as (your store name) Though it does not pass a total price into the payment total within paypal. That is what I can't figure out. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.