question

kcinfuse avatar image
kcinfuse asked ismdcf commented

Error: Could not capture preauth. Order has 7 line items!

Whenever I am capturing a pre-auth, I get an error message "999, Could not capture preauth. Order has X line items!" where X corresponds with the number of line items in the order.

I've even seen this error with 0 line items.


Can someone give me more detail on what this error message means and how I can rectify it?

PaymentsClover Android SDKPaymentConnector
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

·
David Marginian avatar image
David Marginian Deactivated answered ismdcf commented

It would be helpful if you could explain how you are integrating with us. You are leaving things quite wide open with this question.

7 comments
10 |2000

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

kcinfuse avatar image kcinfuse commented ·

I'm just trying to pre-auth by using the Clover SDK then capture the pre-auth.

It does seem like we can only capture pre-authorizations if there is only one line item. Is there a reason for that? I can only get it to work with an order with one line item.

0 Likes 0 ·
David Marginian avatar image David Marginian ♦♦ kcinfuse commented ·

You are using a Remote Pay SDK? Payment Connector?

0 Likes 0 ·
kcinfuse avatar image kcinfuse David Marginian ♦♦ commented ·

I am using the ACTION_SECURE_PAY intent to start secure pay: https://clover.github.io/clover-android-sdk/com/clover/sdk/v1/Intents.html#ACTION_SECURE_PAY


Then I use payment connector to capture it. I tried using solely payment connector but for some reason paymentConnector.preAuth() wasn't triggering the secure payment screen on my Mini Gen 1 or Station 2018.



I also tried using the TRANSACTION_TYPE_CAPTURE_PREAUTH transaction type instead of using paymentConnector.capturePreAuth(), but I couldn't find any examples of how to do it purely via intents

0 Likes 0 ·
Show more comments

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