BTPayPalMessagingRequest
public struct BTPayPalMessagingRequest
Used to initialize a BTPayPalMessagingView
This feature is currently only supported for buyers located in the US. For merchants domiciled outside of the US
please set the buyerCountry to display messaging to US based buyers.
Warning
This module is in beta. It’s public API may change or be removed in future releases.-
Initialize a
BTPayPalMessagingDeclaration
Swift
public init( amount: Double? = nil, pageType: BTPayPalMessagingPageType? = nil, offerType: BTPayPalMessagingOfferType? = nil, buyerCountry: String? = nil, logoType: BTPayPalMessagingLogoType = .inline, textAlignment: BTPayPalMessagingTextAlignment = .right, color: BTPayPalMessagingColor = .black )Parameters
amountOptional. Price expressed in cents amount based on the current context (i.e. individual product price vs total cart price)
pageTypeOptional. Message screen location (e.g. product, cart, home)
offerTypeOptional. Preferred message offer to display
buyerCountryOptional. Consumer’s country (Integrations must be approved by PayPal to use this option)
logoTypeOptional. Logo type option for a PayPal Message. Defaults to
.inlinetextAlignmentOptional. Text alignment option for a PayPal Message. Defaults to
.rightcolorOptional. Text and logo color option for a PayPal Message. Defaults to
.black
View on GitHub