BTPayPalMessagingView
@MainActor
public class BTPayPalMessagingView : UIView
extension BTPayPalMessagingView: PayPalMessageViewEventDelegate, PayPalMessageViewStateDelegate
Use BTPayPalMessagingView
to display PayPal messages to promote offers such as Pay Later and PayPal Credit to customers.
Warning
This module is in beta. It’s public API may change or be removed in future releases.-
Declaration
Swift
@MainActor public weak var delegate: BTPayPalMessagingDelegate?
-
Initializes a
BTPayPalMessagingView
.Declaration
Swift
@MainActor public init(apiClient: BTAPIClient)
Parameters
apiClient
The Braintree API client
-
Creates a view to be displayed to promote offers such as Pay Later and PayPal Credit to customers.
Warning
useBTPayPalMessagingDelegate
protocol to receive notifications for eventsDeclaration
Swift
@MainActor public func start(_ request: BTPayPalMessagingRequest = BTPayPalMessagingRequest())
Parameters
request
an optional
BTPayPalMessagingRequest
-
PayPal Messaging for SwiftUI
See moreDeclaration
Swift
@MainActor struct Representable : UIViewRepresentable
-
Declaration
Swift
@MainActor public func onClick(_ paypalMessageView: PayPalMessages.PayPalMessageView)
-
Declaration
Swift
@MainActor public func onApply(_ paypalMessageView: PayPalMessages.PayPalMessageView)
-
Declaration
Swift
@MainActor public func onLoading(_ paypalMessageView: PayPalMessages.PayPalMessageView)
-
Declaration
Swift
@MainActor public func onSuccess(_ paypalMessageView: PayPalMessages.PayPalMessageView)
-
Declaration
Swift
@MainActor public func onError(_ paypalMessageView: PayPalMessages.PayPalMessageView, error: PayPalMessages.PayPalMessageError)