简体   繁体   English

Stripe 集成问题:您的卡的安全代码无效

[英]Stripe integration issue : Your card's security code is invalid

I want to implement stripe in my application.我想在我的应用程序中实现条带。 I am using Credit Card Number: 4242 4242 4242 4242 Exp month :02 Exp Year:20 for testing purpose.Previously it was working fine But suddenly it started giving me error "Your card's security code is invalid"我使用信用卡号:4242 4242 4242 4242 Exp 月份:02 Exp Year:20 用于测试目的。以前它工作正常但突然它开始给我错误“您的卡的安全代码无效”

You must enter info like below, Cvc must be 3 digit like 777 . 您必须输入如下信息, Cvc必须是3位数字,例如777

 var MyToken = new StripeTokenCreateOptions();
 MyToken.Card = new StripeCreditCardOptions
 {
      AddressCountry = "USA",
      AddressLine1 = "TEST",
      AddressLine2 = "TEST",
      AddressCity = "Chicago",
      AddressZip = "12345",
      Cvc = "777",
      ExpirationMonth = 10,
      ExpirationYear = 20,
      Name = "Blue naina",
      Number = "5555555555554444"
 };

有时它发生在 CVC 以 0 开头时。在传递给条带 API 之前,始终将整数转换为字符串。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM