ios - Stripe 集成问题 : Your card's expiration year is invalid

标签 ios objective-c stripe-payments

我想在我的应用程序中实现 Stripe 。 我正在使用信用卡号:4242 4242 4242 4242 Exp month :02 Exp Year:2020 进行测试。但它给我错误“您的卡的到期年份无效”

最佳答案

只需要到期年份的最后 2 位数字,因此在您的 STPCardParams 中发送 .expMonth = 02 和 .expYear = 20 .

关于ios - Stripe 集成问题 : Your card's expiration year is invalid,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41426618/

相关文章:

java - Spring Boot 中的 Stripe 示例 Java 服务器?不兼容的类型 : Optional<StripeObject> cannot be converted to Source

ios - 存档选项将不会启用

ios - 无法选择 UITextField

ios - 关于内存警告的问题

iphone - 使用 Chipmunk 物理引擎创建椭圆

ios - 属性文本不适用于 TableView Cell

c# - 使用 Stripe 的 Payment Intent API 接受 Xamarin 表单中的付款

javascript - 卡元素不能与 Stripe.elements() 一起使用不是函数错误

ios - 应用纵横比约束时 UIImageView 消失

ios - 从一个 ViewController 到另一个 Webview 的 HTML 文本