Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

vjren

Archived
  • Posts

    14
  • Joined

  • Last visited

Profile Information

  • Real Name
    Rene

vjren's Achievements

  1. That is the easy route yes, but it looks a little more professional when Items are specified. Just some good support from paypal would be nice to figure this one out. Anyway, it works, just the warning is not so nice.
  2. I had the same problem all at once starting like around 10-12 july. It seems like they have closed the negative handling amount fix door. I had too tidy up the calculations in paypal_ec.php (am using the one from AlexStudio in express checkout contrib) I replaced the calculation to be: (note // is removed code) $su_total = round($order->info['subtotal'] * $currencies->get_value($currency_id), $decimal); $sh_total = round($order->info['shipping_cost'] * $currencies->get_value($currency_id), $decimal); $tx_total = round($order->info['tax'] * $currencies->get_value($currency_id), $decimal); $tx_item = round($this->ec_generate_PDI($currency_id, true) * $currencies->get_value($currency_id), $decimal); //$ha_total = round((($order->info['total'] ) - $order->info['subtotal'] - $order->info['shipping_cost'] - $order->info['tax']) * $currencies->get_value($currency_id), $decimal); $ha_total = round((($order->info['total'] ) - $order->info['subtotal'] - $order->info['shipping_cost'] - ($order->info['tax'] - $tx_item)) * $currencies->get_value($currency_id), $decimal); $ot_total = round($order->info['total'] * $currencies->get_value($currency_id), $decimal); $su_totalex = $su_total - $tx_item; //$order_info['PAYPAL_ORDER_TOTAL'] = $su_total + $sh_total + $tx_total + $ha_total; //**** Use the sum of all items to avoid decimal rounds mismatch the total. $order_info['PAYPAL_ORDER_TOTAL'] = $ot_total; //if only ordertotal is given the ship+order is not checked and never a problem $order_info['PAYPAL_CURRENCY'] = $currency_id; $email = "Order total=" . $ot_total . "\nItemEx" . $su_totalex . "\n Shipping=" . $sh_total . "\ntxtotal=" . $tx_total . "\ntxitem=" . $tx_item . "\nhatotal=" . $ha_total . "\norder total=" . ($su_totalex + $sh_total + $tx_total + $ha_total) . "\n"; tep_mail(STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS, 'PayPal EC Check Error', $email, STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS); note, I send myself an email to check the amount, can delete afterwards. Now the payments come through. However,still the status is warning: they send me: [shortMessage] = Transaction refused because of an invalid argument. See additional error messages for details. [LongMessage] = The totals of the cart item amounts do not match order amounts. [ErrorCode] = 10413 [severityCode] = Warning and I can really not see any error, If i add it all up it fits..?
  3. Ok, I see, when I have some more time maybe I have a look further into this. Right now I would only appreciate some help as to add my paypal fee to the checkout total. It is not so easy anymore... $paypalfee = 1.02; $su_total = round($order->info['subtotal'] * $currencies->get_value($currency_id), $decimal); $sh_total = round($order->info['shipping_cost'] * $currencies->get_value($currency_id), $decimal); $tx_total = round($order->info['tax'] * $currencies->get_value($currency_id), $decimal); $ha_toatl = round((($order->info['total'] ) - $order->info['subtotal'] - $order->info['shipping_cost'] - $order->info['tax']) * $currencies->get_value($currency_id), $decimal); $order_info['PAYPAL_ORDER_TOTAL'] = $su_total + $sh_total + $tx_total + $ha_toatl; change to $order_info['PAYPAL_ORDER_TOTAL'] = round(($su_total + $sh_total + $tx_total + $ha_toatl ) * $paypalfee * $currencies->get_value($currency_id), $decimal); but how about the check paypal does?
  4. That a nice one and it works, but the great thing :) about this contrib is that users that already have paypal and a shipping address can click express checkout before loggin in, so a n account is created from their paypal address. That is a good thing. Your contrib could use an admin option to rule out direct payment by credit card maybe ? Then it could also be used in countries not allowed yet by paypal for direct payments..
  5. Is there an easy way to allow express checkout but disable direct payments? (I overlooked the fact that direct payment only works in the USA, so now I have express checkout, very nice, but it disables at the same time, otherwise if I leave direct credit card payments enabled, customers will be rejected all the time.. (merchant country not allowed...)
  6. look at http://www.oscommerce.com/forums/lofiversion/i...hp/t139193.html and http://www.oscommerce.com/community/bugs,1605 solved!
×
×
  • Create New...