Hello,
I am trying to improve how Square is integrated within our Android application.
I have seen a couple of examples of nice integrations that take you straight from the application to the Square payment screen:
- https://youtube.com/shorts/K35mIT_TZXc?si=wsbTYkrkSdxbTEHy
- https://youtube.com/shorts/AdmHQSHdRik?si=9m2in_Rf0O87EIMk
However, when we launch Square from our Android application (Application ID: sq0idp-5l2TrP9A8wLScVTJF9Wf8g ):
ChargeRequest.Builder builder = new ChargeRequest.Builder(amountPence, CurrencyCode.valueOf(currencyCode));
builder.note(note);
builder.enforceBusinessLocation(locationId);
builder.autoReturn(timeout, TimeUnit.MILLISECONDS);
builder.requestMetadata(requestMetadata);
Set<ChargeRequest.TenderType> tenderTypes = new LinkedHashSet<>();
tenderTypes.add(ChargeRequest.TenderType.CARD);
builder.restrictTendersTo(tenderTypes);
ChargeRequest request = builder.build();
startActivityForResult(registerClient.createChargeIntent(request), …);
the user is presented with an intermediary screen where they have to tap a blue button to “Continue with Square Terminal”.
How can I make it so our app skips that screen and is taken straight to the actual payment screen (as demonstrated in the two aforementioned YouTube clips)?
Thanks,
James