I am currently using this code to start a payment on square app:
ChargeRequest request = new ChargeRequest.Builder(
amount * 100,
CurrencyCode.INR).restrictTendersTo(ChargeRequest.TenderType.CASH)
.build();
try {
Intent intent = posClient.createChargeIntent(request);
startActivityForResult(intent, requestCode);
} catch (ActivityNotFoundException e) {
// Show Alert Dialog
AlertDialog.Builder builder = new AlertDialog.Builder(this);
builder.setTitle("Error");
builder.setMessage("Square Point of Sale is not installed");
builder.setNeutralButton("OK", (dialogInterface, i) -> {
});
builder.show();
posClient.openPointOfSalePlayStoreListing();
}
it opens a window to select payment options for accepting payments, can anyone tell how I can directly open a QR code for accepting payments?