question

mubashar-abbas avatar image
mubashar-abbas asked David Marginian Deactivated answered

Cannot add partial payment test card to the customer's source

We are trying to test the partial payment scenario with clover ecommerce api.

The test card is according to

https://docs.clover.com/docs/test-card-numbers

4005 5780 0333 3335

We are using clover hosted iframe to tokenize the card. It gets tokenized successfully, but when I add the token to a customer's source to use it for future transactions. we get this response


{"message":"402 Payment Required","error":{"type":"card_error","code":"card_declined","message":"Token verification failed for token clv_1TSTSRTofFD9TADHfFVLm6o2"}}

We are not actually trying to charge the card at this point, just add it to customer.

Shouldn't a problem occur when we try to charge a card?

And why is this card being declined, if it is good for a partial charge?

Please advise so we can adjust our app's flow accordingly.

Thankyou.

clover developer community
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

Before putting a card on file, we validate it. The decline is expected behavior. Please see the note on this page - https://docs.clover.com/docs/test-card-numbers (I just had the docs updated to say Ecommerce API instead of Developer Pay)

The Ecommerce API declines partial auth transactions. In the above list, the Visa test card number for partial amount approvals will be declined.


10 |2000

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

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