File tree Expand file tree Collapse file tree 3 files changed +7
-14
lines changed
stripe_platform_interface/lib/src Expand file tree Collapse file tree 3 files changed +7
-14
lines changed Original file line number Diff line number Diff line change @@ -225,14 +225,6 @@ AndroidManifest.xml
225225```
226226
227227This 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- ```
236228For more details, see Google Pay’s Set up Google Pay API for Android.
237229
238230#### Add Google Pay
Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ import 'dart:async';
22
33import 'package:flutter/foundation.dart' ;
44import '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.
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments