question

Sukhbir Singh avatar image
Sukhbir Singh asked Sukhbir Singh commented

Urgent: Transaction DECLINED every time when making a payment with the amount $25.50

Hi David Marginian,


We have integrated the clover payment functionality in our application. While we were testing the application's functionality as per Testing US payment flows mentioned on https://docs.clover.com/docs/testing-us-payment-flows, During the Test#3, whenever we are trying to make Next payment with the amount $25.50 by swapping the card number 6011 3610 0000 6668 (Discover, plastic). The transaction goes Decline every time. Also, we have checked that issue is coming with the amount of $25.50 only. Please have the look of the attached screen.



We are using the following code to make the payment transaction:


SaleRequest request = new SaleRequest();
request.setAmount(2550);
request.setExternalId(ExternalIdUtils.generateNewID());
request.setCardEntryMethods(Intents.CARD_ENTRY_METHOD_ALL);
request.setDisablePrinting(true);
request.setDisableReceiptSelection(true);
request.setDisableDuplicateChecking(true);
request.setTipAmount(0L);
request.setAllowOfflinePayment(false);
request.setTipMode(TipMode.TIP_PROVIDED);
mPaymentConnector.sale(request);

Please suggest why it is happening? Is there missing anything from our side?


This is very urgent for us.


Note: If we enter the manual card number by using the "Type Card" option it is working as expected.


Thanks.

PaymentsClover Android SDKClover MiniPaymentConnectorSale
4 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.

David Marginian avatar image David Marginian ♦♦ commented ·

Can you try making the payment for more than 50 dollars and let me know if that works?

0 Likes 0 ·
Sukhbir Singh avatar image Sukhbir Singh David Marginian ♦♦ commented ·

Hi David Marginian, Yes, it works for more than 50 dollars. But not working less than 50 dollars. Why?

0 Likes 0 ·
David Marginian avatar image David Marginian ♦♦ Sukhbir Singh commented ·

In sandbox, payments go through an emulated gateway. There is probably some emulation rule in place that is declining the payment for some reason. We have known about this for awhile and will take another look at it.

0 Likes 0 ·
Show more comments

0 Answers

Welcome to the
Clover Developer Community