Would like to re-initiate a custom tender payment programmatically. Is this possible via the Clover SDK or through some other facility?
Would like to re-initiate a custom tender payment programmatically. Is this possible via the Clover SDK or through some other facility?
No that is not possible. You can use ACTION_CLOVER_PAY to initiate a payment for an order, but there is no way to force a particular tender.
When I initiate a payment using ACTION_CLOVER_PAY and the transaction is complete, the next time I go to the Payments app I get the following exception:
2020-10-29 08:55:30.285 4564-4564/? E/AndroidRuntime: FATAL EXCEPTION: main Process: com.clover.payment.builder.pay, PID: 4564 java.lang.IllegalStateException: Activity has been destroyed at android.app.FragmentManagerImpl.enqueueAction(FragmentManager.java:1456) at android.app.BackStackRecord.commitInternal(BackStackRecord.java:708) at android.app.BackStackRecord.commit(BackStackRecord.java:672) at android.app.DialogFragment.show(DialogFragment.java:256) at com.clover.payment.common.securepay.PaymentUiMessageRequestDialogView.showDialogFragment(PaymentUiMessageRequestDialogView.java:100) at com.clover.payment.common.securepay.PaymentUiMessageRequestDialogView.show(PaymentUiMessageRequestDialogView.java:81) at com.clover.payment.builder.pay.activities.PayActivity.onUserInterfaceUpdate(PayActivity.java:2511) at com.clover.payment.common.securepay.SecurePayServiceManager.fireOnUserInterfaceUpdate(SecurePayServiceManager.java:697) at com.clover.payment.common.securepay.SecurePayServiceManager.access$500(SecurePayServiceManager.java:42) at com.clover.payment.common.securepay.SecurePayServiceManager$2.onUserInterfaceUpdate(SecurePayServiceManager.java:359) at com.clover.commonpayments.SecurePayServiceConnector$SecurePayServiceListenerParent$2.run(SecurePayServiceConnector.java:139) at com.clover.commonpayments.SecurePayServiceConnector$SecurePayServiceListenerParent$1.run(SecurePayServiceConnector.java:128) at android.os.Handler.handleCallback(Handler.java:751) at android.os.Handler.dispatchMessage(Handler.java:95) at android.os.Looper.loop(Looper.java:154) at android.app.ActivityThread.main(ActivityThread.java:6121) at java.lang.reflect.Method.invoke(Native Method)
3 People are following this question.