Currently doing a preauth flow using the payment connector.
Ideal flow:
Preauth a transaction for a certain amount, then make a sale with that amount. The sale should handle closing/voiding the initial pre-auth.
What I've done:
Via the SDK, I'm unable to capture the pre-auth if the order has more than one line item, so I've resorted to using paymentConnector.sale().
This seems to work fine, but it leaves the initial pre-authorization open. Is there a way to delete/void this preAuth after successful sale? I've tried using a VoidPaymentRequest but it hasn't worked because, I assume, a preauth transaction is different from a normal payment.