capacitor-community / stripe

Stripe Mobile SDK wrapper for Capacitor
MIT License
185 stars 74 forks source link

validateExpiryDate always returns false on iOS #58

Closed OrthoCube closed 2 years ago

OrthoCube commented 3 years ago

Describe the bug

Passing a valid expiry date results in valid = false for iOS (correctly returns valid = true on Android)

To Reproduce

Stripe.validateExpiryDate({ exp_month: 12, exp_year: 25 }).then(res => {
    this.expiryStatus = res.valid ? 'OK' : 'Invalid';
});

this.expiryStatus is set to 'Invalid'

Expected behavior

this.expiryStatus should be set to 'OK'.

Smartphone (please complete the following information):

giuseeFG commented 3 years ago

Any news about this? @OrthoCube

ktoala commented 3 years ago

Same error :/

rdlabo commented 2 years ago

Thanks for issue! Today this plugin of v3 is released. This not compatible with v1. All APIs have been revamped. So I will close this issue. If you still have the same problem, please create a new Issue. Thank you.