thephpleague / omnipay-paypal

PayPal driver for the Omnipay PHP payment processing library
MIT License
295 stars 174 forks source link

Items and vat total error #244

Open officialmmt opened 3 years ago

officialmmt commented 3 years ago

Hi, I try to figure out items and vat mismatch error

$response = $this->gateway->purchase([
                'amount' => session()->get('ordertotal'),
                'taxAmount' => session()->get('taxedtable'),
                'currency' => env('PAYPAL_CURRENCY'),
                'returnUrl' => route('paypal.success'),
                'cancelUrl' => route('paypal.error'),
            ])->setItems($items)->send();

I trying like that but not works. I can add vat as an item but this is not a good solution. How can I handle it?