Quantcast
Channel: Square Developer Forums - Latest topics
Viewing all articles
Browse latest Browse all 1758

Add shipping to checkout order

$
0
0

I’m using Square checkout from a php script. I’ve set all my items and taxes but I can’t seem to figure out on how to add a shipping fee to the order. I’m using the php order class but looking at the model, I don’t see a method to add it.

        $order = new Order($location_id);
        $order->setLineItems($items);
        $order->setTaxes($tax_items);

        $shipping = new ShippingFee();
        $shipping->setName("Shipping total");
        $shipping->setCharge($money);

How do I add it?

3 posts - 2 participants

Read full topic


Viewing all articles
Browse latest Browse all 1758

Trending Articles