Jump to content

AndreGl

Members
  • Content count

    4
  • Joined

  • Last visited

  1. AndreGl

    PayPal App v5.000 - Problem for shipping with VAT

    I tested the code bit more... And found the problem. The mistake happens in GCCV plugin from http://addons.oscommerce.com/info/9020 See checkout_process.php there... require(DIR_WS_CLASSES . 'order.php'); $order = new order; // load the before_process function from the payment modules $payment_modules->before_process(); // Stock Check $any_out_of_stock = false; if (STOCK_CHECK == 'true') { for ($i=0, $n=sizeof($order->products); $i<$n; $i++) { if (tep_check_stock($order->products[$i]['id'], $order->products[$i]['qty'])) { $any_out_of_stock = true; } } // Out of Stock if ( (STOCK_ALLOW_CHECKOUT != 'true') && ($any_out_of_stock == true) ) { tep_redirect(tep_href_link(FILENAME_SHOPPING_CART)); } } $payment_modules->update_status(); if ( ($payment_modules->selected_module != $payment) || ( is_array($payment_modules->modules) && (sizeof($payment_modules->modules) > 1) && !is_object($$payment) ) || (is_object($$payment) && ($$payment->enabled == false)) ) { tep_redirect(tep_href_link(FILENAME_CHECKOUT_PAYMENT, 'error_message=' . urlencode(ERROR_NO_PAYMENT_MODULE_SELECTED), 'SSL')); } require(DIR_WS_CLASSES . 'order_total.php'); $order_total_modules = new order_total; $order_totals = $order_total_modules->process(); The call $payment_modules->before_process(); have to be after $order_total_modules->process();. The order_total process calculate the shipping tax and the payment before_order call paypal. So if anyone else have the same problem by using "Credit Class, Gift Vouchers & Discount Coupons osC2.3.3.4" try the fix by moving this line.
  2. AndreGl

    PayPal App v5.000 - Problem for shipping with VAT

    Yes, I activate the tax in shipping module and configure the net amount. The calculation works weel in osc. So the gross amount is shown in shipping line and the included tax is shown in the separate column. The same in paypal. Shipping is shown as 5,90 for example, but after the step to osc and final request on paypal the amount is changed to net sum of shipping.
  3. AndreGl

    PayPal App v5.000 - Problem for shipping with VAT

    Hello! Thank you for answer... The problem couldn't be on paypal side, because the amount on the PayPal account is later also the smaller one. When you look at the paypal checkout api, you see that 1. osc send order info to paypal 2. user see order details on paypal and login and approve amount 3. paypal call osc and tell the aproved amount 4. maybe here occure the problem - osc calculate something and show the checkout confirmation page. 5. or maybe here occure the problem - on click on the final order butten the amount is send to paypal and this amount is substracted the order
  4. Hello! The PayPal App v5.000 is realy great! I found the update durring trying to fix a shipping vat problem in the old version. Unfortunately its the same problem as before. fe The product subtotal is 5 including 19% tax and shipping is 5,90 including 19% tax See the mail from shop. So the system shows the user the correct amount 10,90 for authorization in both systems (paypal and shop). Then the issue occure: After the order is successfull the authorized amount is 9,96 (the 5€ for itemsand the net amount of the shipping) See the mail from paypal.
×