-
-
Notifications
You must be signed in to change notification settings - Fork 548
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Stripe React Native sync v0.2.2 (#357)
* sync with Stripe React Native v0.2.2 * adjust Card Form Field parameters to match the available options * Update iOS binding to RN 0.2.2 * Focus fix (#366) * apply change from flutter/flutter#86480 (comment) * remove unnecessary focus workarounds * Fix issue #14 * revert pubspec change * prepare next release * BREAKING: disable wechat pay as of https://github.com/stripe/stripe-ios/blob/master/CHANGELOG.md#2181-2021-08-10 * add openApplePaySetup * remove beta references and bump to 2.0.0 Co-authored-by: Jaime Blasco <[email protected]> Co-authored-by: Remon <[email protected]>
- Loading branch information
1 parent
3081e07
commit 8e48dbb
Showing
46 changed files
with
684 additions
and
752 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
import 'package:flutter/foundation.dart'; | ||
|
||
// If you are using a real device to test the integration replace this url | ||
// If you are using a real device to test the integration replace this url | ||
// with the endpoint of your test server (it usually should be the IP of your computer) | ||
final kApiUrl = defaultTargetPlatform == TargetPlatform.android | ||
? 'http://10.0.2.2:4242' | ||
? 'http://192.168.0.92:4242' | ||
: 'http://localhost:4242'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
35 changes: 35 additions & 0 deletions
35
example/lib/screens/wallets/open_apple_pay_setup_screen.dart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
import 'package:flutter/material.dart'; | ||
import 'package:flutter/widgets.dart'; | ||
import 'package:flutter_stripe/flutter_stripe.dart'; | ||
import 'package:stripe_example/widgets/example_scaffold.dart'; | ||
|
||
class OpenApplePaySetup extends StatefulWidget { | ||
const OpenApplePaySetup({Key? key}) : super(key: key); | ||
|
||
@override | ||
_OpenApplePaySetupState createState() => _OpenApplePaySetupState(); | ||
} | ||
|
||
class _OpenApplePaySetupState extends State<OpenApplePaySetup> { | ||
Future<void> openApplePaySetup() async { | ||
await Stripe.instance.openApplePaySetup(); | ||
} | ||
|
||
@override | ||
Widget build(BuildContext context) { | ||
return ExampleScaffold( | ||
title: 'Open Apple pay Setup', | ||
tags: ['iOS'], | ||
padding: EdgeInsets.all(16), | ||
children: [ | ||
Center( | ||
child: ElevatedButton( | ||
onPressed: () { | ||
openApplePaySetup(); | ||
}, | ||
child: Text('Open apple pay setup')), | ||
) | ||
], | ||
); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.