question

Bryanne Vega avatar image
Bryanne Vega asked Gabriel Fernandez commented

Start Manual Sale (Or SaleApp) by Intent

We're looking forward to apply a few back-end code and based on the result, start the sale/manual sale app with a specific amount, because we want the merchant/employee to be able to select cash or other tender types, not just a SecurePayment intent. Can this be done?

Sale
10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

Miguel avatar image
Miguel Deactivated answered Gabriel Fernandez commented

Would using Intents.ACTIONCLOVERPAY work? It allows merchants the ability to select different payment types, but it uses the register app. You can find sample code in our paywithregisterexample in our Github repro: https://github.com/clover/android-exa...

Alternatively, you can launch manual sales app using Intents.ACTIONMANUALPAY, but I can't find of way of populating the sale amount this way.

Thanks, Miguel

1 comment
10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Gabriel Fernandez avatar image Gabriel Fernandez commented ·

I let you an example about open Sale app using ACTIONMANUALPAY populating the sale amount with $15.00.

Intent intent = new Intent(Intents.ACTIONMANUALPAY);

intent.putExtra(Intents.EXTRA_AMOUNT, new Long(1500));

if(intent.resolveActivity(getPackageManager()) != null) {

startActivityForResult(intent,555);

}

0 Likes 0 ·

Welcome to the
Clover Developer Community