Android clover SDK give us this intent.
public static final String ACTIONCLOVERPAY
Launch Pay activity with active order (Register Payments) Extras passed:
EXTRACLOVERORDER_ID - The UUID of the order being paid for (REQUIRED)
EXTRAOBEYAUTO_LOGOUT - If true and merchant uses auto-logout, device logs out after payment, default is false
EXTRAASKFOR_TIP - If true, customer will be prompted for tip after payment, default is true
EXTRAALLOWFIRE - If true and merchant fires orders after payment, order is fired after payment, default is true Result data for this activity will include the same extras passed to it
Result codes:
Activity.RESULTOK - payment completed successfully Activity.RESULTCANCELED - payment not completed successfully
Can somebody tell me why this intent specifies (Register Payments). Initially i think this intent i couldn't use it on clover under TerminalPlan but it is not so. I don't want to deploy my app and it will give unexpected errors due misinterpretation of (Register Payments) later.
I am creating an Order and open it with ACTIONCLOVERPAY. Then my application wait for ACTIONPAYMENTPROCESSED to release the order. Everything seems to work well.