Jump to content

Payment Gateways not getting Shipping Rates from Module but rate is displayed


obeidullah

Recommended Posts

Hi there folks

We running Prestashop 1.7.8.X

We have a shipping module written by one of the Prestashop members here which retrieves shipping rates from our local courier courier company API based on size and weight of the total cart. The rate displays fine and everything works as it should when we choose to pay with "BANK WIRE" or "CASH ON COLLECTION". However whenever we try to use any payment gateway such as PAYFAST, OZOW or PAYFLEX then these gateway are only getting the total cart without the shipping rate. We have checked the script and it does infact show the "BOTH" but it seems that somehow where the shipping module is storing the shipping value for this order, it is not being retrieved with the standard Prestashop commands in the "REDIRECT" page.

The Gateway module developers have said that they cannot do anything else as this is not a fault in their module but rather something to do with the website or other modules.

So to clarify: 

  • When the client selects "THE COURIER GUY" shipping and chooses a payment gateway then the gateway gets the cart total without the shipping costs which is actually displayed on the checkout page.
  • If the client chooses a shipping option which is not running through THE COURIER GUY API and selects a payment gateway then the Payment gateway gets a total including the Shipping costs.

I am not a developer but sat hours trying to figure where the issue could be and with the help of ChatGPT (I know it's not the best) we found that it seems that THE COURIER GUY module is not storing the shipping value in the proper location where generally prestashop would call for Cart Total (either Cart only or BOTH).

I am willing to pay for anybody that can provide a working solution to this problem as we have this issue with any payment gateway and not just one specific one.

 

Thanks alot

Link to comment
Share on other sites

Hi,

From your description, it looks like the shipping cost is displayed correctly but not properly carried over when the payment gateway retrieves the final cart total during redirect. That’s why it works with offline methods but not with gateways like PayFast or Ozow.

I run a certified PrestaShop agency and we’ve resolved similar carrier/payment inconsistencies before. I’d be glad to run a quick diagnostic and identify exactly where the shipping value is being lost.

Also, we’ve developed a robust checkout flow that ensures shipping totals remain fully compatible with external gateways and platforms (as long as everything is correctly reflected in the cart before checkout). I’d be happy to share more details if that could help your setup.

Let me know how you’d like to proceed.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...