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

Delay_action=complete with order ID

$
0
0

When I collect payment from customers, I like to describe how I’m receiving payment by creating an order.

I execute a test delayed payment with order ID and received this result:

{"errors": [{"code": "BAD_REQUEST","detail": "provided value: COMPLETE is invalid if an order_id is provided","field": "delay_action","category": "INVALID_REQUEST_ERROR"}]}

Then the documention goes on to say:

When an order ID isn’t specified, Square creates an order. This ensures that the order amount and payment amounts are the same and Square can therefore complete the payment.

Is there a way to make this call succeed while specifying an order ID if I already calculated the correct amounts?

For example, If I created an order of say:
10 apples at $1, and
20 apples at $2
and I set the payment amount in the payments api to $3, why couldn’t the call succeed? I demonstrated that $1 + $2 = $3.

9 posts - 3 participants

Read full topic


Viewing all articles
Browse latest Browse all 1510

Latest Images

Trending Articles



Latest Images