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

Error on 400 on verification

$
0
0

I’m encountering an error when trying to call the verifybuyer and a URL with error 400 is being logged on the console. Is this a known issue?

Scenario:

Request:
var card = new Card.Builder()
.CustomerId(“HG42J5D18QEVXYZCFZFQAG4FGC”)
.Build();

var body = new CreateCardRequest.Builder(
idempotencyKey: “34d9dda6-be9f-4426-8dfa-d9bd70927a9c”,
sourceId: “cnon:CBASEBjo43E4a1khCfDrs10mjZsoAg”,
card: card)
.VerificationToken(“verf:CA4SEHyUjH3ba_fJl7rxs8E24UUgACgC”)
.Build();

try
{
var result = await client.CardsApi.CreateCardAsync(body: body);
}
catch (ApiException e)
{
Console.WriteLine(“Failed to make the request”);
Console.WriteLine($“Response Code: {e.ResponseCode}”);
Console.WriteLine($“Exception: {e.Message}”);
}

Response:
{
“errors”: [
{
“category”: “PAYMENT_METHOD_ERROR”,
“code”: “CARD_DECLINED_VERIFICATION_REQUIRED”,
“detail”: “Card declined. A verification is required to process this payment. See Strong Customer Authentication for more information.”
}
]
}

6 posts - 3 participants

Read full topic


Viewing all articles
Browse latest Browse all 1328

Trending Articles