Structures

The following structures are available globally.

  • Contact information of the recipient for the order

    See more

    Declaration

    Swift

    public struct BTContactInformation
  • Declaration

    Swift

    public struct BTPayPalPhoneNumber : Encodable
  • A recurring billing amount breakdown. This object can only used for the BTPayPalCheckoutRequest to customize how the transaction amount is broken down. If BTAmountBreakdown is provided, itemTotal is required. Some fields are conditionally required or not accepted depending on the checkout flow (e.g., one-time vs subscription).

    See more

    Declaration

    Swift

    public struct BTAmountBreakdown : Encodable
  • PayPal recurring billing cycle details.

    See more

    Declaration

    Swift

    public struct BTPayPalBillingCycle : Encodable
  • PayPal Recurring Billing Agreement pricing details.

    See more

    Declaration

    Swift

    public struct BTPayPalBillingPricing : Encodable
  • PayPal recurring billing product details.

    See more

    Declaration

    Swift

    public struct BTPayPalRecurringBillingDetails : Encodable
  • 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.
    See more

    Declaration

    Swift

    public struct BTPayPalMessagingRequest
  • A summary of the buyer’s recommended payment methods.

    Warning

    This feature is in beta. It’s public API may change or be removed in future releases.
    See more

    Declaration

    Swift

    public struct BTShopperInsightsResult
  • Buyer data required to use the Shopper Insights feature.

    Warning

    This feature is in beta. It’s public API may change or be removed in future releases.
    See more

    Declaration

    Swift

    public struct BTShopperInsightsRequest
  • Buyer’s phone number details for use with the Shopper Insights feature.

    Warning

    This feature is in beta. It’s public API may change or be removed in future releases.
    See more

    Declaration

    Swift

    public struct Phone : Encodable
  • Customer recommendations for what payment options to show.

    Warning

    This feature is in beta. It’s public API may change or be removed in future releases.
    See more

    Declaration

    Swift

    public struct BTCustomerRecommendationsResult
  • A BTCustomerSessionRequestfor creating a customer session.

    Warning

    This feature is in beta. It’s public API may change or be removed in future releases.
    See more

    Declaration

    Swift

    public struct BTCustomerSessionRequest
  • A single payment recommendation

    Warning

    This feature is in beta. It’s public API may change or be removed in future releases.
    See more

    Declaration

    Swift

    public struct BTPaymentOptions
  • Amounts of the items purchased.

    Warning

    This feature is in beta. It’s public API may change or be removed in future releases.
    See more

    Declaration

    Swift

    public struct BTPurchaseUnit