Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -593,18 +593,18 @@ class MethodChannelStripe extends StripePlatform {
{'clientSecret': clientSecret, 'params': params.toJson()},
);

// workaround for fact that created is parsed as string from Stripe android
final created = result?['token']['created'];
if (created != null && created is String) {
result?['token']['created'] = int.tryParse(created);
}

_financialConnectionsEventHandler = params.onEvent;

if (result!.containsKey('error')) {
throw ResultParser<void>(parseJson: (json) => {}).parseError(result);
}

// workaround for fact that created is parsed as string from Stripe android
final created = result?['token']['created'];
if (created != null && created is String) {
result?['token']['created'] = int.tryParse(created);
}

return FinancialConnectionTokenResult.fromJson(result);
}

Expand Down