[Skip to main content](#vessel-content)

#   PayPal Checkout express buyer is charged more than they approved overseas post

##

- **[nippyzap](/forum/user/900-nippyzap "View nippyzap's Profile")**
- [![nippyzap's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/900-nippyzap "View nippyzap's Profile") Topic Author
- [ Away](/forum/user/900-nippyzap)

Less More

- Posts: 57
- Thank you received: 0
-
-

44 minutes ago [\#100000887](#100000887) by [nippyzap](/forum/user/900-nippyzap "View nippyzap's Profile")  *[PayPal Checkout express buyer is charged more than they approved overseas post](/forum/29-payment-methods/100000193-paypal-checkout-express-buyer-is-charged-more-than-they-approved-overseas-post#100000887 "-- HikaShop version -- : HikaShop Business 6.8.2 -- Joomla version -- : 6.2 -- PHP version -- : 8.4.28 -- Browser(s) name and version -- : Firefox 162.0  Hello,  With the PayPal Checkout express buttons (&quot;Express button on the cart&quot; / &quot;Express button on the checkout cart&quot;), a customer who chooses an overseas delivery address in PayPal approves one amount and is then charged a higher one, without being asked again.  Tested with PayPal Sandbox (Australian test buyer, UK shop, Royal Mail shipping methods by zone): 1. Cart: one item at £12.35. No address is entered on the site. 2. The express button is clicked. The PayPal window shows £22.10: the item plus £9.75 postage for our default zone (UK). It still shows £22.10 with the Melbourne address selected. The buyer approves £22.10 (AU$44.60). 3. HikaShop creates order with the correct Zone 2 postage, £34.10 (total £46.45). &#95;captureExpressOrder() then Patches the PayPal order amount to £46.45 and captures it. PayPal accepts the PATCH, the order is marked paid, and the buyer is taken to the thank-you page. 4. The buyer's PayPal activity shows £46.45 (AU$93.74) taken, more than double what they approved. They were never shown the new amount.  Cause, as far as I can see in 6.8.2: - PaypalCheckoutExpress::processExpressCallback() already does the right thing. It quotes shipping for the PayPal address through helper.express-&gt;quote() and returns shipping&#95;options and the new amount, or COUNTRY&#95;ERROR / ADDRESS&#95;ERROR. - But the Create Order request (&#95;getExpressOrderData() / PaypalCheckoutOrderData::getOrderData()) never includes payment&#95;source.paypal.experience&#95;context.order&#95;update&#95;callback&#95;config (callback&#95;url to &amp;express=callback with cart&#95;id and express&#95;token, callback&#95;events SHIPPING&#95;ADDRESS and SHIPPING&#95;OPTIONS). It only sends the older application&#95;context. So PayPal never calls the callback, and the amount the buyer approves is always the default-zone one. - The same applies to a country with no shipping method: nothing stops the buyer in PayPal.  I've had to turn the cart express button off for customers. In the meantime I'm testing a workaround on Sandbox: I answer the express=create request with the same code plus order&#95;update&#95;callback&#95;config, moving application&#95;context into payment&#95;source.paypal.experience&#95;context. I'll report back on whether PayPal then shows the right total.  Am I missing something or if not could this be fixed in a future release, so the express buttons can safely be used before the customer has entered an address?  Thank you for any guidance in advance.  Martyn")* was created by *[nippyzap](/forum/user/900-nippyzap "View nippyzap's Profile")*

-- HikaShop version -- : HikaShop Business 6.8.2
-- Joomla version -- : 6.2
-- PHP version -- : 8.4.28
-- Browser(s) name and version -- : Firefox 162.0

Hello,

With the PayPal Checkout express buttons ("Express button on the cart" / "Express button on the checkout cart"), a customer who chooses an overseas delivery address in PayPal approves one amount and is then charged a higher one, without being asked again.

Tested with PayPal Sandbox (Australian test buyer, UK shop, Royal Mail shipping methods by zone):
1. Cart: one item at £12.35. No address is entered on the site.
2. The express button is clicked. The PayPal window shows £22.10: the item plus £9.75 postage for our default zone (UK). It still shows £22.10 with the Melbourne address selected. The buyer approves £22.10 (AU$44.60).
3. HikaShop creates order with the correct Zone 2 postage, £34.10 (total £46.45). _captureExpressOrder() then Patches the PayPal order amount to £46.45 and captures it. PayPal accepts the PATCH, the order is marked paid, and the buyer is taken to the thank-you page.
4. The buyer's PayPal activity shows £46.45 (AU$93.74) taken, more than double what they approved. They were never shown the new amount.

Cause, as far as I can see in 6.8.2:
- PaypalCheckoutExpress::processExpressCallback() already does the right thing. It quotes shipping for the PayPal address through helper.express-&gt;quote() and returns shipping_options and the new amount, or COUNTRY_ERROR / ADDRESS_ERROR.
- But the Create Order request (_getExpressOrderData() / PaypalCheckoutOrderData::getOrderData()) never includes payment_source.paypal.experience_context.order_update_callback_config (callback_url to &amp;express=callback with cart_id and express_token, callback_events SHIPPING_ADDRESS and SHIPPING_OPTIONS). It only sends the older application_context. So PayPal never calls the callback, and the amount the buyer approves is always the default-zone one.
- The same applies to a country with no shipping method: nothing stops the buyer in PayPal.

I've had to turn the cart express button off for customers. In the meantime I'm testing a workaround on Sandbox: I answer the express=create request with the same code plus order_update_callback_config, moving application_context into payment_source.paypal.experience_context. I'll report back on whether PayPal then shows the right total.

Am I missing something or if not could this be fixed in a future release, so the express buttons can safely be used before the customer has entered an address?

Thank you for any guidance in advance.

Martyn

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI5LXBheW1lbnQtbWV0aG9kcy8xMDAwMDAxOTMtcGF5cGFsLWNoZWNrb3V0LWV4cHJlc3MtYnV5ZXItaXMtY2hhcmdlZC1tb3JlLXRoYW4tdGhleS1hcHByb3ZlZC1vdmVyc2Vhcy1wb3N0P3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.049 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
