PaymentOptionsButton
public struct PaymentOptionsButton<Content> : View where Content : View
A button which presents a sheet for a customer to select a payment method. This is a convenience wrapper for the .paymentOptionsSheet() ViewModifier.
Parameters
paymentSheetFlowController
|
A PaymentSheet.FlowController to present. |
onSheetDismissed
|
Called after the payment method selector is dismissed. |
content
|
The content of the view. |
-
Initialize a
PaymentOptionsButton
with required parameters.Declaration
Swift
public init( paymentSheetFlowController: PaymentSheet.FlowController, onSheetDismissed: @escaping () -> Void, @ViewBuilder content: () -> Content )
-
Declaration
Swift
public var body: some View { get }