- Issue created by @Grevil
The moment an anonymous user wants to buy a product, he presses the EC Button on the Cart Layer, but at this stage, most order adjustments are not set yet (e.g. shipping rate). So the PayPal Modal will appear asking for to confirm the purchase of product A for amount x. But amount x does not include any adjustments. E.g. the shipping amount of y is missing. So we agree on amount x, but on the "complete purchase" step, the paypal transaction is now amount x + shipping amount y, which leads to an error being thrown, as PayPal would like to reconfirm the updated purchase, as they are not allowed to overcharge according to the "Overcapture requirements (PSD2)". The reconfirmation link is not shown to the user, only an error (that should be fixed in 🐛 Needs to redirect users on UNPROCESSABLE_ENTITY > PAYER_ACTION_REQUIRED - No checkout possible Active ).
We should try to find a way to communicate between Drupal and PayPal, similar to how the stripe EC integration implemented in ✨ Stripe Express Checkout Element Integration Active does it:
Stripe (through AmazonPay for example) communicates back and forth with the server, so once AmazonPay has the address, they pass the address back to the server and the server can calculate the shipping rates based off the address given and send the available rates to stripe / amazon pay.
Active
1.0
PayPal EC