I am listening to ACTION_PAYMENT_PROCESSED inside a native APP, and pass context and intent to a function like the following:
case Intents.ACTION_PAYMENT_PROCESSED: /* 0 = "com.clover.intent.extra.ORDER_ID" 1 = "com.clover.intent.extra.AMOUNT" 2 = "com.clover.intent.extra.TENDER" 3 = "com.clover.intent.extra.PAYMENT_ID" */ try { payment_processed(context, intent); } catch (ExecutionException | InterruptedException e) { Toast.makeText(context,e.toString(),Toast.LENGTH_LONG).show(); } break;
In the function, I am currently hardcoded a URL to test, but it gives me the following error when I test it on Clover Mini DevKit:
Is there anything wrong?