I am facing issues with partial payment implementation using gift card.
On the Sandbox I made a request for partial payment with gift card which responded with APPROVED (payment id: Xdx6fGz0tmqV0aMY0fm6PIjLSxIZY). Then I sent another payment request using Credit Card which was declined (payment id: J8W1wqyHf076JxeusCPAFxWB0xNZY). I followed this with another payment request which was also APPROVED (payment id: 5WvhwsxiaWALKC6qXwEafnFqwQ7YY ).
But when I pass the paymentIDs to the Order Pay API, I get the response
{“errors”: [{“code”: “BAD_REQUEST”,“detail”: “The card payment attached to the order must be AUTHORIZED: Xdx6fGz0tmqV0aMY0fm6PIjLSxIZY”,“category”: “INVALID_REQUEST_ERROR”}]}
This is happening only when there is card payment failure in between successful payment by giftcard and another successful payment by credit card.