Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Paypal prices dont match checkout


ecclesr

Recommended Posts

I have used the following code in my paypal module to allow multiple enteries to be displayed

 

The problem I have is the prices displayed do not meet the special prices displayed on my checkout_confirmation eg 2 X xxx $19.12

 

The product xxx base price is $8.50 on special at $7.65 including GST tax comes to $9.56

 

On the paypal review page it is 2 X xxx $17.00

 

What changes do to need to make to capture the checkout_confirmation values to be available to the paypal module

 

# Multiple item payment, P. 86 of

# https://www.paypal.com/en_US/pdf/PP_Website...rationGuide.pdf

 

$process_button_string = tep_draw_hidden_field('cmd', '_cart') .

tep_draw_hidden_field('upload', '1') .

tep_draw_hidden_field('business', MODULE_PAYMENT_PAYPAL_ID) .

tep_draw_hidden_field('handling_cart', 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('tax_cart', number_format($order->info['tax'])) .

tep_draw_hidden_field('no_shipping', $my_shipping) .

tep_draw_hidden_field('no_note', '1') .

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'));

 

# add individual items and amounts to keep in PP transaction history and notices

 

$i=0;

foreach($order->products as $key => $arr)

{

$i++;

$process_button_string .= tep_draw_hidden_field("item_name_$i",$arr["name"]) .

tep_draw_hidden_field("quantity_$i", $arr["qty"]) .

tep_draw_hidden_field("amount_$i", $arr["final_price"]);

}

 

 

Thanking you all in advance

Link to comment
Share on other sites

  • 3 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...