We currently have a clover app that uses the preAuth() call. but for some reason, the clover screen completes the payment and shows the receipt screen thereafter which seemed like when you pay from clovers own payment app.
I'm assuming that you can pre vault the card token for processing the payment at a later point in the app flow. Or is it supposed to work that way?
we were expecting the onPreAuthResponse to be called. but it never gets called.
here's a sample call:
PreAuthRequest preAuthRequest = new PreAuthRequest(); preAuthRequest.setExternalId(ExternalIdUtils.generateNewID()); preAuthRequest.setAmount(10000L); preAuthRequest.setOrderId(order.getId()); preAuthRequest.setCardEntryMethods(CardEntryMethods.ALL); paymentConnector.preAuth(preAuthRequest);
then waiting for the callback via:
IPaymentConnectorListener cloverListener = new IPaymentConnectorListener() { @Override public void onPreAuthResponse(PreAuthResponse response) { ... } ... }
thanks for anyone who can point me in the right direction or guide