Payment Status gets Cancelled

When we use the payments api to pay for certain order created on square we get payment successful message but the status of the Payment is coming cancelled.

Could you please suggest what may be the reason why the status of the payment is coming as Cancelled?

Thanks

Can you share any payment_ids? Is the status immediately CANCELED?

These are list of payment ids:

HFteQIarNU5gHhcHe2v2iqUCAQNZY
lqowxapHEu0LETe4fKlqayQG3TIZY
VqevsUsxPhuTamd4MDds9tBR7OJZY
3ZrKG0myyRn355lqGJQMHMVj08eZY
VeQ5tvlKIVFikyTym5fKQq38NW9YY
z3prJV1ssBaWcomC0pzLzEUUZraZY
Vs1OaY9G9ibxGCGqlHA6mi0YGrYZY

Yes their status gets cancelled immediately.

Thanks

These payments are not succeeding, they’re failing (at least looking at the first two payments you provided). The error being returned is: “The payment is for a different location than the order.”. The order and payment need to be associated with the same location, else they will fail.