ConfirmButton
public struct ConfirmButton<Content> : View where Content : View
A button which confirms the payment or setup. Depending on the user’s payment method, it may present a confirmation sheet. This is a convenience wrapper for the .paymentConfirmationSheet() ViewModifier.
Parameters
paymentSheetFlowController
|
A PaymentSheet.FlowController to present. |
onCompletion
|
Called with the result of the payment/setup confirmation, after the PaymentSheet (if any) is dismissed. |
content
|
The content of the view. |
-
Initialize a
ConfirmPaymentButton
with required parameters.Declaration
Swift
public init( paymentSheetFlowController: PaymentSheet.FlowController, onCompletion: @escaping (PaymentSheetResult) -> Void, @ViewBuilder content: () -> Content )
-
Declaration
Swift
public var body: some View { get }