File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
packages/stripe_platform_interface/lib/src Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -593,18 +593,18 @@ class MethodChannelStripe extends StripePlatform {
593593 {'clientSecret' : clientSecret, 'params' : params.toJson ()},
594594 );
595595
596- // workaround for fact that created is parsed as string from Stripe android
597- final created = result? ['token' ]['created' ];
598- if (created != null && created is String ) {
599- result? ['token' ]['created' ] = int .tryParse (created);
600- }
601-
602596 _financialConnectionsEventHandler = params.onEvent;
603597
604598 if (result! .containsKey ('error' )) {
605599 throw ResultParser <void >(parseJson: (json) => {}).parseError (result);
606600 }
607601
602+ // workaround for fact that created is parsed as string from Stripe android
603+ final created = result? ['token' ]['created' ];
604+ if (created != null && created is String ) {
605+ result? ['token' ]['created' ] = int .tryParse (created);
606+ }
607+
608608 return FinancialConnectionTokenResult .fromJson (result);
609609 }
610610
You can’t perform that action at this time.
0 commit comments