BTPayPalPhoneNumber

public struct BTPayPalPhoneNumber : Encodable
  • Intialize a BTPayPalPhoneNumber

    Declaration

    Swift

    public init(countryCode: String, nationalNumber: String)

    Parameters

    countryCode

    The international country code for the shopper’s phone number (must be 1 to 3 digits, no symbols or spaces allowed; e.g., “1” for the United States).

    nationalNumber

    The national segment of the shopper’s phone number (must be 4 to 12 digits, no symbols or spaces allowed; excludes the country code).

  • Declaration

    Swift

    public func encode(to encoder: any Encoder) throws