File tree 2 files changed +12
-0
lines changed
StripePaymentSheet/StripePaymentSheet/Source/PaymentSheet/CustomerSheet
2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -6,3 +6,7 @@ This major version introduces many small breaking changes. Please see [MIGRATING
6
6
* [ Changed] Replaced ` IntentConfiguration.ConfirmHandler ` with an async equivalent.
7
7
* [ Added] Added async versions of all completion-block-based PaymentSheet and PaymentSheet.FlowController methods.
8
8
9
+ ### CustomerSheet
10
+ * [ Added] Added an async version of ` present(from:) ` .
11
+
12
+
Original file line number Diff line number Diff line change @@ -125,6 +125,14 @@ public class CustomerSheet {
125
125
case error( Error )
126
126
}
127
127
128
+ public func present( from presentingViewController: UIViewController ) async -> CustomerSheetResult {
129
+ await withCheckedContinuation { continuation in
130
+ present ( from: presentingViewController) { result in
131
+ continuation. resume ( returning: result)
132
+ }
133
+ }
134
+ }
135
+
128
136
public func present( from presentingViewController: UIViewController ,
129
137
completion csCompletion: @escaping ( CustomerSheetResult ) -> Void
130
138
) {
You can’t perform that action at this time.
0 commit comments