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:
- Successfully tokenize the card
- initiated the verifybuyer call
-
No pop up was shown and a verification token was given but an error 400 was logged in the console. https://connect.squareupsandbox.com/v2/analytics/verifications/verf:CA4SEAkh7M1B-TkMLdKljqyPEX0gACgC/three-ds-authentication 400 (Bad Request)
-
tried to use the tokenized id and the verification id to save the card on file but it gave an error saying CARD_DECLINED_VERIFICATION_REQUIRED
-
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.”
}
]
}