Howdy folks, I'm working on starting a Pre-Auth process via a button click on my custom CFS app.
My code follows the Clover docs (https://docs.clover.com/docs/android-pay-preauth) but it's not working.
String externalPaymentId = String.valueOf(generateRandomNumbers());
Long amount = 2500L;
PreAuthRequestIntentBuilder builder = new PreAuthRequestIntentBuilder(externalPaymentId, amount);
builder.externalReferenceId(externalPaymentId);
Intent intent = builder.build(getApplicationContext());
intent.putExtra(Intents.EXTRA_AMOUNT, amount);
intent.putExtra(Intents.EXTRA_PAYMENT_ID, externalPaymentId);
startActivityForResult(intent, PAYMENT_REQUEST_CODE);
Where am I going wrong?