shopkit
shopkit copied to clipboard
Shipping costs missing for Paypal
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?
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"
?
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€