capacitor-community / stripe

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

validateExpiryDate always returns false on iOS #91

Closed Jud-Ken-Do closed 2 years ago

Jud-Ken-Do commented 2 years ago

Describe the bug On the version 1.1.0 the validateExpiryDate always returns false on iOS

To Reproduce

const date: ValidateExpiryDateOptions = { exp_month, exp_year }

async validateExpiry(date: ValidateExpiryDateOptions) { return await Stripe.validateExpiryDate(date); }

Expected behavior validateExpiry return false even for valid dates

Additional context I'm aware that there is a new version, but for now I'm working using capacitor v2, is it possible to know where I can fix the swift code. Thank you :)

rdlabo commented 2 years ago

I see v2's validateExpiryDate method is not be implements. ( only always return false )

rdlabo commented 2 years ago

@Jud-Ken-Do Did you adapt this plugin for production? If yes, please tell us what app. Please help us to develop this plugin in 2022. https://github.com/capacitor-community/stripe/issues/145 Thanks.