diff --git a/StripeConnect/StripeConnect/Source/Components/PaymentDetailsViewController.swift b/StripeConnect/StripeConnect/Source/Components/PaymentDetailsViewController.swift index e6bff67bf7c..95fabf7defd 100644 --- a/StripeConnect/StripeConnect/Source/Components/PaymentDetailsViewController.swift +++ b/StripeConnect/StripeConnect/Source/Components/PaymentDetailsViewController.swift @@ -49,7 +49,7 @@ public class PaymentDetailsViewController: UIViewController { } } -/// Delegate of an `PayoutsViewController` +/// Delegate of an `PaymentDetailsViewController` @available(iOS 15, *) @_spi(DashboardOnly) public protocol PaymentDetailsViewControllerDelegate: AnyObject { @@ -57,10 +57,10 @@ public protocol PaymentDetailsViewControllerDelegate: AnyObject { /** Triggered when an error occurs loading the payment details component - Parameters: - - payouts: The payment details component that errored when loading + - paymentDetails: The payment details component that errored when loading - error: The error that occurred when loading the component */ - func paymentDetailsLoadDidFail(_ payouts: PaymentDetailsViewController, + func paymentDetailsLoadDidFail(_ paymentDetails: PaymentDetailsViewController, withError error: Error) } @@ -68,6 +68,6 @@ public protocol PaymentDetailsViewControllerDelegate: AnyObject { @available(iOS 15, *) public extension PaymentDetailsViewControllerDelegate { // Default implementation to make optional - func paymentDetailsLoadDidFail(_ payouts: PaymentDetailsViewController, + func paymentDetailsLoadDidFail(_ paymentDetails: PaymentDetailsViewController, withError error: Error) { } }