question

darrank avatar image
darrank asked darrank commented

Programatically generate MERCHANT_TENDER intent for a specific order

Would like to re-initiate a custom tender payment programmatically. Is this possible via the Clover SDK or through some other facility?

Custom Tenders
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

·
Jeffrey Blattman avatar image
Jeffrey Blattman answered darrank commented

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.

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.

darrank avatar image darrank commented ·

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)



0 Likes 0 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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

Welcome to the
Clover Developer Community