View Issue Details

IDProjectCategoryView StatusLast Update
0007629module PayPal Checkoutmodule PayPal checkout - subpublic2024-05-10 14:43
Reporterthomas_g Assigned To 
PrioritynormalSeveritymajorReproducibilityalways
Status resolvedResolutionfixed 
Product Version2.3.3 / 1.3.3 
Summary0007629: If the shop is running in net mode and a voucher is redeemed, an incorrect amount will be collected by PayPal
DescriptionIf the shop is running in net mode, the variable $itemTotal in OrderRequestFactory::getAmount() on line 205 already contains the discounted amount.
The discount (net) is incorrectly deducted again in line 212.
The resulting incorrect amount will be collected by PayPal.

   /**
     * @return AmountWithBreakdown
     */
    protected function getAmount(): AmountWithBreakdown
    {
        $basket = $this->basket;
        $currency = $basket->getBasketCurrency();

        //Discount
        $discount = $basket->getPayPalCheckoutDiscount();
        //Item total cost
205 $itemTotal = $basket->getPayPalCheckoutItems();

        // possible price surcharge
        if ($discount < 0) {
            $itemTotal -= $discount;
            $discount = 0;
        }
212 $total = $itemTotal - $discount;
Steps To Reproduce1. Set the net mode in the Shop:
  Master Settings -> Core Settings -> Settings -> VAT -> Enter Product Prices as Net Prices (plus VAT)
  Master Settings -> Core Settings -> Settings -> VAT -> Show net prices in frontend (B2B)
2. Add one ore more articles to the basket
3. Go to the Checkout and redeem a voucher - absolute or relative doesn't matter
4. Choose PayPal as payment method
5. Go to the final checkout step and remember or write down the total amount
6. Click buy now
7. Log in to PayPal and check the payment amount => The net value of the voucher was deducted again from the final amount
Additional Information- es -
TagsNo tags attached.

Relationships

duplicate of 0007595 resolved[email protected] PayPal Checkout substract discount from coupon series again, if 'Show net prices in frontend (B2B)' is active 

Activities

QA

2024-04-08 21:04

administrator   ~0016729

should be solved in v2.4.0 for OXID eShop 6.3.x and above.
See changelog: https://github.com/OXID-eSales/paypal-module/blob/b-6.3.x/CHANGELOG.md

Not solved for older versions, so not in PPC v1.3.5 for OXID eShop 6.1 and 6.2