question

sanjay avatar image
sanjay asked ·

How can we add Tip amount with AuthRequest

Hi,


I am using following code to make the Auth type payment with the help of Payment connector:


AuthRequest request = new AuthRequest();

request.setAmount(amount);

request.setTaxAmount(getTaxAmount()));

request.setExternalId(ExternalIdUtils.generateNewID());

request.setExternalReferenceId(getInvoiceNumber());

request.setCardEntryMethods(CardEntryMethods.ALL);

request.setDisablePrinting(true);

request.setDisableReceiptSelection(true);

request.setDisableDuplicateChecking(true);

request.setAllowOfflinePayment(false);

request.setTipMode(TipMode.TIP_PROVIDED);

mPaymentConnector.auth(request);


I want to add the Tip amount as well with the auth request but not found setTipAmount() method in AuthRequest class. Can you please suggest us that how can we add the Tip amount in Auth type payment?


Thanks.

PaymentsClover Android SDKsemi-integrationsPaymentConnectorAuth
10 |2000 characters needed characters left characters exceeded

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 answered ·

If you want to add a tip amount at the time of the payment then do a sale. An auth is a tip adjustable transaction (e.g. table service restaraunt, you get a bill, the server takes your card and dips/swipes, returns you a receipt and then you add a tip). If you want to continue using an auth a tip can be added later via tipAdjustAuth on PaymentConnector.

1 comment Share
10 |2000 characters needed characters left characters exceeded

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

OK, thanks for the quick answer.

0 Likes 0 · ·

Welcome to the
Clover Developer Community