Square order checkout with Tip

Hi,

Is there a way to create an order checkout createPaymentLink with Tip amount?

Lets say a customer orders $2.00 drink and add $0.50 tip. We want to create a paymentLink for $2.50.

How can we send the tip amount in the request body of createPaymentLink request?

We tried by adding tip as an adhoc line item in the “order”, but then the tip gets taxed.

What is the best way to create a paymentLink with Tip or is there a way to add an adhoc line item to order with no tax.

With the payment links you can allow_tipping within the checkout_options to accept tips. :slightly_smiling_face:

@Bryan-Square

We collect tip on our online ordering platform.

Is it possible to add an adhoc line item to an order without it being taxed? The idea is we collect tip on our platform and send Tip as an adhoc line item. But we don’t want that line item to be taxed.

Yes, you can include an adhoc line item to an order and not have it taxed. :slightly_smiling_face:

@Bryan-Square

This is how we are sending an adhoc “Tip” line item but when the order gets created, the “tip” item gets taxed. How can we send “tip” item and prevent it from being taxed?

We would really appreciate your help, that’s the last piece left in our Checkout integration.

“line_items”: [
{
“quantity”: “1”,
“uid”: “0”,
“catalog_object_id”: “AI3G7XLOD2I64JBIOVLMXNY6”,
“item_type”: “ITEM”,
“note”: “”
},
{
“name”: “Tip”,
“quantity”: “1”,
“base_price_money”: {
“amount”: 60,
“currency”: “CAD”,
“applied_taxes”:
}
}
]

You may want to pass the tip in as a service_charges. Something like this:

{
    "idempotency_key": "af11c105-a9ee-4522-8d09-cbdcd88e6768",
    "order": {
      "location_id": "6VJ7QXVFCPZCM",
      "line_items": [
        {
          "quantity": "1",
          "catalog_object_id": "TO37YFB2TJJHIQGHNTBBW45W",
          "base_price_money": {
            "amount": 100,
            "currency": "USD"
          }
        }
      ],
      "pricing_options": {
        "auto_apply_taxes": true
      },
      "service_charges": [
        {
          "amount_money": {
            "amount": 200,
            "currency": "USD"
          },
          "name": "tip",
          "calculation_phase": "TOTAL_PHASE"
        }
      ]
    }
  }

:slightly_smiling_face:

This works. Thank you very much