I'm using Rest API in a website for a client that uses Clover and we have gift cards, so the user can use a gift card to paid for an order, so I'm creating the order, then applying a discount to the order, and if the giftcard amount is greater than the order's total the user shouldn't pay for the order. Everything if fine, but the order remains with state "open". I've tried to set state to "locked" and paymentState to "PAID" but it's not working.
Which is the correct way to achieve this?
Thank you