ConfirmPaymentButton

public struct ConfirmPaymentButton<Content> : View where Content : View

A button which confirms the payment. 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 after the payment confirmation is done and the PaymentSheet (if any) is dismissed.

content

The content of the view.