PaymentButtonDelegate
@available(*, deprecated, message: "Use PaymentButtonContainer(﹚ instead.")
protocol PaymentButtonDelegate : AnyObject
Delegation for PaymentButton
which includes hooks to respond to button events.
-
When the button’s eligibility status changes
Declaration
Swift
@available(*, deprecated, message: "Use PaymentButtonContainer(﹚ instead.") func button(_ button: PaymentButton, changedEligibilityStatus status: PaymentButtonEligibilityStatus)
Parameters
button
the PaymentButton instance that calls the delegate function
-
When the button has finished.
Declaration
Swift
@available(*, deprecated, message: "Use PaymentButtonContainer(﹚ instead.") func onButtonFinish(_ button: PaymentButton)
Parameters
button
the PaymentButton instance that calls the delegate function
-
When the button starts before checkout process.
Declaration
Swift
@available(*, deprecated, message: "Use PaymentButtonContainer(﹚ instead.") func onButtonStart(_ button: PaymentButton)
Parameters
button
the PaymentButton instance that calls the delegate function