question

sdesai avatar image
sdesai asked David Marginian Deactivated edited

iFrame SDK Test Cards

Is there test cards that can simulate declines or partial auths simlar to https://docs.clover.com/clover-platform/docs/test-card-numbers#section-simulating-declines for the new e-commerce api (ideally when we call https://scl-sandbox.dev.clover.com/v1/orders/id/pay)?

Payments
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 David Marginian Deactivated edited
13 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.

sdesai avatar image sdesai commented ·

Yes, all the cards on that list come back as fully paid.

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

I am not sure how that is possible, we just tried the test card number starting with 4005... and it returned:

{
    "message": "402 Payment Required",
    "error": {
        "code": "card_declined",
        "message": "DECLINED: Over limit / Insufficient funds.",
        "charge": "...",
        "declineCode": "issuer_declined"
    }
}
0 Likes 0 ·
sdesai avatar image sdesai David Marginian ♦♦ commented ·

This is the response we're getting with card 4005 5717 0222 2222 and cvv 111.

{

"id" : "7JP537FNYHK8Y",

"object" : "order",

"amount" : 2169,

"tax_amount" : 119,

"currency" : "USD",

"charge" : "T7KNQKT3F2P9A",

"first6" : "400557",

"created" : 1589919187000,

"ref_num" : "1240467837",

"auth_code" : "410991",

"items" : [ {

"amount" : 150,

"description" : "Online Fee"

}, {

"parent" : "8NFQC1PNSS4XJ",

"amount" : 1900,

"description" : "B4. 3 Chicago Stuffed"

} ],

"status" : "paid",

"status_transitions" : {

"paid" : 1589919199282

}

}


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