question

bobbygill avatar image
bobbygill asked bryanvargas commented

How to test in-sufficient Payment on credit/debit on Clover Sandbox App?

We have Clover Application where we are getting payment from customers for orders they created. We want to show an error message and decline that transaction if someone tries to Pay for an order which has a Payment Amount greater than their available balance.

Let's say someone is purchasing some item worth $10 and if they have a balance of $5 only on their debit card. We want to return an error message and cancel their Payment.

We tried to test payment with test card 4005 5780 0333 3335 given on Clover reference documents. But we are not getting any errors in that case.

We neither want Split Transaction nor Partial Payment. We want single transaction with full payment.

Ordersclover developer community
9 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.

bryanvargas avatar image bryanvargas ♦♦ commented ·

a detailed answer on partial payments can be found here: https://community.clover.com/questions/37514/how-to-stop-partial-payments-in-action-secure-pay.html

That card should give you a partial payment request. I ran a test with an amount of $100 and only $50 was approved. I would suggest trying a high amount to see if it can partially approve.

0 Likes 0 ·
bobbygill avatar image bobbygill bryanvargas ♦♦ commented ·
We have checked that, but we are not sure how can we restrict the full amount in the sandbox. And we are using the default clover payment UI. We just pass the amount to clover and swipe the sandbox credit card. We want to check and limit credit cards for the sandbox. Can you please guide how can we achieve this?
0 Likes 0 ·
parquet76 avatar image parquet76 bobbygill commented ·

If you are using the device, you cannot swipe the sandbox credit card. You need to do a manual entry and use one of the partial approval cards listed https://docs.clover.com/docs/test-card-numbers.

0 Likes 0 ·
Show more comments

0 Answers

·

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