shopkit icon indicating copy to clipboard operation
shopkit copied to clipboard

Shipping costs missing for Paypal

Open Mojo90 opened this issue 5 years ago • 2 comments

Hi there, we recently discovered problems with the shipping costs. They are as always accounted for and also stand on the invoice. But when the people are paying with Paypal we always get only the amount of everything except the shipping costs. I am not sure since when this is but it is still some time, could it be that this happened since the changes with Stripe this August/September? Do you have any idea how to quickly solve that?

Mojo90 avatar Dec 16 '19 08:12 Mojo90

Can you confirm that your site/plugins/shopkit/gateways/paypalexpress/process.php file looks like this? https://github.com/samnabi/shopkit/blob/master/site/plugins/shopkit/gateways/paypalexpress/process.php#L28

<input type="hidden" name="shipping_1" value="<?= (float) $txn->shipping()->value + (float) $txn->shipping_additional()->value ?>">

What happens if you change name="shipping_1" to just name="shipping"?

samnabi avatar Dec 19 '19 15:12 samnabi

I can confirm that the files are the same. I copied both to https://www.diffchecker.com and it said the texts are identical.

I tried to change the input field to name="shipping". On the checkout page just before going to PayPal it is correct with the price so for example 1€ product + 4,90€ shipping. But then when going to shipping Paypal still just charges for 1€

Mojo90 avatar Dec 21 '19 10:12 Mojo90