BTPayPalMessagingView
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
public weak var delegate: BTPayPalMessagingDelegate?
-
Initializes a
BTPayPalMessagingView
.Declaration
Swift
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
public func start(_ request: BTPayPalMessagingRequest = BTPayPalMessagingRequest())
Parameters
request
an optional
BTPayPalMessagingRequest
-
PayPal Messaging for SwiftUI
See moreDeclaration
Swift
struct Representable : UIViewRepresentable
-
Declaration
Swift
public func onClick(_ paypalMessageView: PayPalMessages.PayPalMessageView)
-
Declaration
Swift
public func onApply(_ paypalMessageView: PayPalMessages.PayPalMessageView)
-
Declaration
Swift
public func onLoading(_ paypalMessageView: PayPalMessages.PayPalMessageView)
-
Declaration
Swift
public func onSuccess(_ paypalMessageView: PayPalMessages.PayPalMessageView)
-
Declaration
Swift
public func onError(_ paypalMessageView: PayPalMessages.PayPalMessageView, error: PayPalMessages.PayPalMessageError)