Quantcast
Channel: Square Developer Forums - Latest topics
Viewing all articles
Browse latest Browse all 1325

How to simulate error for creating card (not payment) in sandbox env

$
0
0

Dear team,

By referring to the link Sandbox Payments, I noticed below card info to simulate error in sandbox env.

Test values Desired error state
CVV: 911 Card CVV incorrect
Postal code: 99999 Card postal code incorrect
Expiration date: 01/40 Card expiration date incorrect
Card number: 4000000000000002 Card declined number
PAN: 4000000000000010 Card on file auth declined

However, when i tried to create card (not payment) with above info, I always got a general error “Error [category=INVALID_REQUEST_ERROR, code=INVALID_CARD_DATA, detail=Invalid card data., field=source_id]”, instead of the msg for the specific error info as above table shows, is it the expected behavior of creating card?

Thanks.

2 posts - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 1325

Trending Articles