When first submitting the order to SagePay the amount being passed does not match the order total, instead it is the sub total (the amount without shipping being added).
The page submit.aspx shows the shipping being added to the total but when submitting to SagePay the transaction amount is the sub-total.
If I go back to shipping page and forward again the amount is correct (includes the shipping), but the first time through it is not including it. Any ideas?
This was happening because I was trying to combine the payment method and shipping method stages into one, which didn't work. I had the updates in the wrong order.
Amount without shipping being passed to SagePay
When first submitting the order to SagePay the amount being passed does not match the order total, instead it is the sub total (the amount without shipping being added).
The page submit.aspx shows the shipping being added to the total but when submitting to SagePay the transaction amount is the sub-total.
If I go back to shipping page and forward again the amount is correct (includes the shipping), but the first time through it is not including it. Any ideas?
Thanks
This was happening because I was trying to combine the payment method and shipping method stages into one, which didn't work. I had the updates in the wrong order.
You could do it if you execute the basket pipeline between the call to shipment and payment, e.g.:
Add Shipment
Basket pipeline
Add payment
Basket pipeline
is working on a reply...