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

Split Payment removes customer_id from an Order

$
0
0

Hi,

I’m working on an integration with the Square API / Webhooks. While testing, I’m trying to extract the customer_id from an order.

The orders are being placed on an iPad POS.

If the order is placed and a customer is added via the POS by tapping on “Add Customer” and the payment is made by a single tender - then everything works fine.

  • order.created webhook is fired
  • payment.created webhook is fired
  • order via the API has a customer_id

However, if the order is placed and a customer is added via the POS by tapping on “Add Customer” and the payment is made using “Split” payments, here’s what I observe:

  • order.created is NOT fired at all (I can work around this)
  • payment.created is fired for both payments
  • order via the API is not available until the last payment is made (fair enough)
    - order via the API does NOT have a customer_id (this is my main concern)
    • however, I do notice that the receipt for the order in the Square dashboard is attached to a customer
  • some of the tenders do have a customer_id, but not all

So even though the customer was added the exact same way, the customer_id is not available in the second case and I can’t rely on the tenders since it only shows up for some.

Is this intended behaviour? How can I get the customer_id for an order that’s paid via split payments.

3 posts - 2 participants

Read full topic


Viewing all articles
Browse latest Browse all 1328

Trending Articles