(I asked this question a few minutes ago, but it doesn't appear to have saved).
So, we have a web-view based app (html/javascript) running happily on Station 1, Mini 1 and 2. We don't yet have a Station Pro, but I'm being told that Manual Transactions are not supported on a Station Pro in the way they are on all the other devices our app runs on.
I'm not an accomplished Java developer, but I can read Java code. Currently we call this to initiate a manual transaction ..which we use purely for refunds.
intent = new Intent("com.clover.intent.action.START_MANUALTRANSACTION");
Can someone explain how this would be achieved on a Station Pro or direct me to some appropriate documentation? If possible we would prefer not to use START_MANUALTRANSACTION but use something like MANUAL_REFUND. Preferably our app would simply initiate a refund passing the amount across. Currently the user has to type in the refund amount into a soft keypad.
I'm guessing I would need to know the device type/model so we can choose which intent/class to call depending on which device the app is running on.
As we're not able to currently test this, do payments work the same way? Currently we call payments like this
public void payOrder(String orderId, String amt) { Intent intent = new Intent(Intents.ACTION_CLOVER_PAY); intent.putExtra(Intents.EXTRA_AMOUNT, amt); intent.putExtra(Intents.EXTRA_ORDER_ID, orderId); IntentFilter paymentFilter = new IntentFilter(Intents.ACTION_PAYMENT_PROCESSED); activity.registerReceiver(PaymentReceiver, paymentFilter); activity.startActivityForResult(intent, 1); }
Thanks
Robin Walmsley
Aptimyz Ltd