How to Open QR code directly for Square In-App payments?

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?

This is the Point of Sale API. The error your getting is Square Point of Sale is not installed. You’ll need to install the Square app on the device to take the payment.

Also what QR code are you referring to? The Point of Sale API is an app switcher to accept payments from customers. :slightly_smiling_face: