PayPalButton
@available(*, deprecated, message: "Use PaymentButtonContainer(﹚ instead.")
@objc(PPCPayPalButton)
class PayPalButton : PaymentButton
extension PayPalButton : CALayerDelegate, CVarArg, CustomDebugStringConvertible, CustomStringConvertible, Equatable, Hashable, NSCoding, NSObjectProtocol, Sendable, UIAccessibilityContentSizeCategoryImageAdjusting, UIAccessibilityIdentification, UIActivityItemsConfigurationProviding, UIAppearance, UIAppearanceContainer, UIContextMenuInteractionDelegate, UICoordinateSpace, UIDynamicItem, UIFocusEnvironment, UIFocusItem, UIFocusItemContainer, UILargeContentViewerItem, UIPasteConfigurationSupporting, UIPopoverPresentationControllerSourceItem, UIResponderStandardEditActions, UISpringLoadedInteractionSupporting, UITraitChangeObservable, UITraitEnvironment, UIUserActivityRestoring, __UITraitChangeObservable
PayPalButton provides a PayPal button with the ability to modify color, edges, size, insets and label. Tapping on PayPalButton will start checkout with Native Checkout SDK Paysheet.
-
Available colors for PayPalButton.
See moreDeclaration
Swift
@available(*, deprecated, message: "Use PaymentButtonContainer(﹚ instead.") @objc(PPCPayPalButtonColor) enum Colorextension PayPalButton.Color : CaseIterable, Equatable, Hashable, RawRepresentable -
Available labels for PayPalButton.
See moreDeclaration
Swift
@available(*, deprecated, message: "Use PaymentButtonContainer(﹚ instead.") @objc(PPCPayPalButtonLabel) enum Labelextension PayPalButton.Label : CaseIterable, Equatable, Hashable, RawRepresentable -
Initialize a PayPalButton. The insets of the button will be set appropriately depending on the button’s size.
Declaration
Swift
@available(*, deprecated, message: "Use PaymentButtonContainer(﹚ instead.") convenience init(color: PayPalButton.Color = .gold, edges: PaymentButtonEdges = .softEdges, size: PaymentButtonSize = .collapsed, label: PayPalButton.Label = .none, isEnabled: Bool = true) -
Initialize a PayPalButton
Declaration
Swift
@available(*, deprecated, message: "Use PaymentButtonContainer(﹚ instead.") convenience init(insets: NSDirectionalEdgeInsets, color: PayPalButton.Color = .gold, edges: PaymentButtonEdges = .softEdges, size: PaymentButtonSize = .collapsed, label: PayPalButton.Label = .none, isEnabled: Bool = true)
View on GitHub
Install in Dash
PayPalButton Class Reference