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

Square Card Payment c# example (sqRazorSample) CARD_DECLINED_VERIFICATION_REQUIRED

$
0
0

Hi there, I am new to Square payment development. I am using “\SquarePaymentExamples\connect-examples\v2\csharp_payment” example to set up the initial testing program locally. I used my SandBox application ID, AccessToken, and also the test payment card
“Visa 4800 0000 0000 0004 111 No Challenge N/A” as shown in your website.

In “ProcessPayment.cshtml.cs”, if I didn’t hard-code " token = “cnon:card-nonce-ok”;, and used the Token generated based on that test card.

var request = JObject.Parse(await new StreamReader(Request.Body).ReadToEndAsync());
var token = (String)request[“token”];

I kept having the error “HTTP Response Not OK”
CARD_DECLINED_VERIFICATION_REQUIRED

Name Value Type
[0] {Error : (this.Category = PAYMENT_METHOD_ERROR, this.Code = CARD_DECLINED_VERIFICATION_REQUIRED, this.Detail = Authorization error: ‘CARD_DECLINED_VERIFICATION_REQUIRED’, this.Field = null)} Square.Models.Error

In the other post, it mentioned about the “issuer requires additional verification through Strong Customer Authentication (SCA).”.
Is there any existing example of running SCA checking based on the testing card (listed on your website).

2 posts - 2 participants

Read full topic


Viewing all articles
Browse latest Browse all 1328

Trending Articles