I'm currently working on a site that processes orders through sagepay. Everything is working fine at the moment but when the order is sent up to Sage pay it seems to be passing the sub total rather than the order total. I've noticed this now that I've implemented shipping costs. When checking the order value the shipping costs are definiely being added and the order total is also being updated.
Also, is there a way to add shipping costs using the API without having an address? The checkout flow of this site has address as the last step so ideally as soon as something is added to the basket I'd like to add on the shipping costs straight away.
Thanks for getting back to me, Thomas. I managed to get to the root of the problem eventually. Embarassingy I was passing up the subtotal rather than the total so a very simple fix when I spotted it. Thanks a lot for replying though.
Shipping methods with sage pay
Hi there,
I'm currently working on a site that processes orders through sagepay. Everything is working fine at the moment but when the order is sent up to Sage pay it seems to be passing the sub total rather than the order total. I've noticed this now that I've implemented shipping costs. When checking the order value the shipping costs are definiely being added and the order total is also being updated.
Also, is there a way to add shipping costs using the API without having an address? The checkout flow of this site has address as the last step so ideally as soon as something is added to the basket I'd like to add on the shipping costs straight away.
I'm using the buit in shipping service too.
Thanks,
Dan
Hey Dan
Could you tell me which version of uCommerce you're using?
Can you show me code where you add the shipment to the basket?
Do you create the payment before you add the shipment to the basket?
Could you also send me a screenshot of the result, when you run this query in your database?
select PO.OrderId, PO.OrderTotal, PO.SubTotal, PO.TaxTotal, PO.ShippingTotal, PO.PaymentTotal, PO.DiscountTotal, S.ShipmentId, S.ShipmentPrice, S.ShipmentDiscount from uCommerce_PurchaseOrder PO join uCommerce_Shipment S on PO.OrderId = S.OrderId;
Kind regards
Thomas Arvidsen
Thanks for getting back to me, Thomas. I managed to get to the root of the problem eventually. Embarassingy I was passing up the subtotal rather than the total so a very simple fix when I spotted it. Thanks a lot for replying though.
is working on a reply...