cancel
Showing results for 
Search instead for 
Did you mean: 

hi guys, need help?

hi guys, need help?

Hello

im devloping one extension to add extra fee,
but  when i select paypal express checkout payment method,
it added charge to grandtotal

 

but when it redirect to paypal
the payment fee is not added

ill try to solve it out using

below link

http://www.ibnab.com/en/blog/magento-2/magento-2-paypal-fee-charge-and-life-cycle

 

but it gives error

PayPal gateway has rejected request. The totals of the cart item amounts do not match order amounts (#10413: Transaction refused because of an invalid argument. See additional error messages for details).

1 REPLY 1

Re: hi guys, need help?

Hi @cx_vv

 

AKAIK - as you have added extra fee on the order and checkout payment , but paypal is giving error on this - its because that extra fee value is not getting passed to paypal gateway !

 

Meaning pricing confliction occurs on both the system - so you need to identify that PayPal call from the system and you also need to pass that extra fee to that PayPal controller

 

If in case of COD or any off-line payment method - then your logic and extension works directly , but  as its payment gateway so you need to pass that extra fee details into payment gateway section as well !

 

Hope it helps !

 

if issue solved,Click Kudos & Accept as Solution