Skip to content

Commit

Permalink
- depend on iOS Stripe 18.0.0
Browse files Browse the repository at this point in the history
- update deployment target to 10.0 (#60)
  • Loading branch information
Jonas Bark committed Oct 17, 2019
1 parent 0fe3ecc commit 06a42f1
Show file tree
Hide file tree
Showing 10 changed files with 23 additions and 19 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
@@ -1,3 +1,7 @@
## [1.0.1]
- cancelling paymentRequestWithCardForm will now return the Future on Android (fixes #55)
- update minimum deployment target for iOS to 10.0

## [1.0.0]

the stripe_payment plugin is now ported from tipsi-stripe React Native plugin:
Expand Down
2 changes: 2 additions & 0 deletions README.md
@@ -1,3 +1,5 @@
[![pub package](https://img.shields.io/pub/v/stripe_payment.svg)](https://pub.dev/packages/stripe_payment)

# stripe_payment

#### Conveniently secure payments methods using Stripe.
Expand Down
2 changes: 1 addition & 1 deletion example/ios/.symlinks/flutter
2 changes: 1 addition & 1 deletion example/ios/.symlinks/plugins/stripe_payment
6 changes: 3 additions & 3 deletions example/ios/Podfile.lock
Expand Up @@ -3,7 +3,7 @@ PODS:
- Stripe (18.0.0)
- stripe_payment (1.0.0):
- Flutter
- Stripe (>= 17.0.1)
- Stripe (>= 18.0.0)

DEPENDENCIES:
- Flutter (from `.symlinks/flutter/ios`)
Expand All @@ -22,8 +22,8 @@ EXTERNAL SOURCES:
SPEC CHECKSUMS:
Flutter: 0e3d915762c693b495b44d77113d4970485de6ec
Stripe: 8c9ac6b717a38ed4f373d4db9204cfe8c4120d65
stripe_payment: 97045f15be956bad8e7fe12efa9f2d7437fff236
stripe_payment: 1baf1bbf556f7a35c210dc9e2eccf2075947b6be

PODFILE CHECKSUM: 6df7b2151b00dd359d0386e1bc413232fa807b13

COCOAPODS: 1.7.3
COCOAPODS: 1.7.5
9 changes: 4 additions & 5 deletions example/ios/Runner.xcodeproj/project.pbxproj
Expand Up @@ -185,7 +185,6 @@
TargetAttributes = {
97C146ED1CF9000F007C117D = {
CreatedOnToolsVersion = 7.3.1;
DevelopmentTeam = VAR7436X2W;
};
};
};
Expand Down Expand Up @@ -418,7 +417,7 @@
ARCHS = arm64;
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CODE_SIGN_ENTITLEMENTS = Runner/Runner.entitlements;
DEVELOPMENT_TEAM = VAR7436X2W;
DEVELOPMENT_TEAM = "";
ENABLE_BITCODE = NO;
FRAMEWORK_SEARCH_PATHS = (
"$(inherited)",
Expand All @@ -431,7 +430,7 @@
"$(inherited)",
"$(PROJECT_DIR)/Flutter",
);
PRODUCT_BUNDLE_IDENTIFIER = com.rbitwo.stripeNativeExample;
PRODUCT_BUNDLE_IDENTIFIER = de.jonasbark.stripeNativeExample;
PRODUCT_NAME = "$(TARGET_NAME)";
};
name = Debug;
Expand All @@ -443,7 +442,7 @@
ARCHS = arm64;
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CODE_SIGN_ENTITLEMENTS = Runner/Runner.entitlements;
DEVELOPMENT_TEAM = VAR7436X2W;
DEVELOPMENT_TEAM = "";
ENABLE_BITCODE = NO;
FRAMEWORK_SEARCH_PATHS = (
"$(inherited)",
Expand All @@ -456,7 +455,7 @@
"$(inherited)",
"$(PROJECT_DIR)/Flutter",
);
PRODUCT_BUNDLE_IDENTIFIER = com.rbitwo.stripeNativeExample;
PRODUCT_BUNDLE_IDENTIFIER = de.jonasbark.stripeNativeExample;
PRODUCT_NAME = "$(TARGET_NAME)";
};
name = Release;
Expand Down
7 changes: 1 addition & 6 deletions example/ios/Runner/Runner.entitlements
@@ -1,10 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>com.apple.developer.in-app-payments</key>
<array>
<string>merchant.rbii.stripe-example</string>
</array>
</dict>
<dict/>
</plist>
4 changes: 2 additions & 2 deletions ios/stripe_payment.podspec
Expand Up @@ -15,6 +15,6 @@ A new flutter plugin project.
s.source_files = 'Classes/**/*'
s.public_header_files = 'Classes/**/*.h'
s.dependency 'Flutter'
s.dependency 'Stripe', '>= 17.0.1'
s.ios.deployment_target = '9.0'
s.dependency 'Stripe', '>= 18.0.0'
s.ios.deployment_target = '10.0'
end
4 changes: 4 additions & 0 deletions lib/src/stripe_payment.dart
Expand Up @@ -126,6 +126,8 @@ class StripePayment {

/// https://tipsi.github.io/tipsi-stripe/docs/confirmPaymentIntent.html
static Future<PaymentIntentResult> confirmPaymentIntent(PaymentIntent intent) async {
assert(intent.clientSecret != null);
assert(intent.paymentMethodId != null);
final result = await _channel.invokeMethod('confirmPaymentIntent', intent.toJson());
return PaymentIntentResult.fromJson(result);
}
Expand All @@ -139,6 +141,8 @@ class StripePayment {

/// https://tipsi.github.io/tipsi-stripe/docs/confirmSetupIntent.html
static Future<SetupIntentResult> confirmSetupIntent(PaymentIntent intent) async {
assert(intent.clientSecret != null);
assert(intent.paymentMethodId != null);
final result = await _channel.invokeMethod('confirmSetupIntent', intent.toJson());
return SetupIntentResult.fromJson(result);
}
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
@@ -1,6 +1,6 @@
name: stripe_payment
description: A Flutter plugin to integrate the stripe libraries for iOS and Android. Supports Apple / Google Pay, SCA, PSD2 and much more.
version: 1.0.0
version: 1.0.1
author: Jonas Bark <jonas.bark@gmx.de>, John Blanchard <jnblanchard@mac.com>
homepage: https://github.com/jonasbark/flutter_stripe_payment

Expand Down

0 comments on commit 06a42f1

Please sign in to comment.