Skip to content
This repository has been archived by the owner on Oct 14, 2024. It is now read-only.

Shipping costs missing for Paypal #224

Open
Mojo90 opened this issue Dec 16, 2019 · 2 comments
Open

Shipping costs missing for Paypal #224

Mojo90 opened this issue Dec 16, 2019 · 2 comments

Comments

@Mojo90
Copy link

Mojo90 commented Dec 16, 2019

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?

@samnabi
Copy link
Owner

samnabi commented Dec 19, 2019

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"?

@Mojo90
Copy link
Author

Mojo90 commented Dec 21, 2019

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€

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants