Skip to content

Commit 49e60b1

Browse files
authored
Merge branch 'main' into feat/web_language
2 parents 3588ebb + c91bbc6 commit 49e60b1

File tree

3 files changed

+7
-14
lines changed

3 files changed

+7
-14
lines changed

docs/sheet.mdx

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -225,14 +225,6 @@ AndroidManifest.xml
225225
```
226226

227227
This guide assumes you’re using the latest version of the Stripe Android SDK.
228-
229-
build.gradle
230-
231-
```
232-
dependencies {
233-
implementation 'com.stripe:stripe-android:17.1.1'
234-
}
235-
```
236228
For more details, see Google Pay’s Set up Google Pay API for Android.
237229

238230
#### Add Google Pay

packages/stripe/lib/src/stripe.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import 'dart:async';
22

33
import 'package:flutter/foundation.dart';
44
import 'package:stripe_platform_interface/stripe_platform_interface.dart';
5+
import 'package:meta/meta.dart';
56

67
/// [Stripe] is the facade of the library and exposes the operations that can be
78
/// executed on the Stripe platform.

packages/stripe_platform_interface/lib/src/method_channel_stripe.dart

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -595,18 +595,18 @@ class MethodChannelStripe extends StripePlatform {
595595
{'clientSecret': clientSecret, 'params': params.toJson()},
596596
);
597597

598-
// workaround for fact that created is parsed as string from Stripe android
599-
final created = result?['token']['created'];
600-
if (created != null && created is String) {
601-
result?['token']['created'] = int.tryParse(created);
602-
}
603-
604598
_financialConnectionsEventHandler = params.onEvent;
605599

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

604+
// workaround for fact that created is parsed as string from Stripe android
605+
final created = result?['token']['created'];
606+
if (created != null && created is String) {
607+
result?['token']['created'] = int.tryParse(created);
608+
}
609+
610610
return FinancialConnectionTokenResult.fromJson(result);
611611
}
612612

0 commit comments

Comments
 (0)