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

时间:2017-02-25 08:30:34

标签: ios objective-c stripe-payments

我想在我的应用程序中实现stripe。我使用的是信用卡号码:4242 4242 4242 4242 Exp month:02 Exp Year:20用于测试目的。之前它工作正常但是突然它开始给我错误“你的卡的安全代码无效”

1 个答案:

答案 0 :(得分:0)

您必须输入如下信息,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"
 };