STPAppInfo

public class STPAppInfo : NSObject

Libraries wrapping the Stripe SDK should use this object to provide information about the library, and set it in on STPAPIClient. This information is passed to Stripe so that we can contact you about future issues or critical updates.

  • Initializes an instance of STPAppInfo.

    Declaration

    Swift

    @objc
    public init(
      name: String,
      partnerId: String,
      version: String?,
      url: String?
    )

    Parameters

    name

    The name of your library (e.g. “MyAwesomeLibrary”).

    partnerId

    Your Stripe Partner ID (e.g. “pp_partner_1234”).

    version

    The version of your library (e.g. “1.2.34”). Optional.

    url

    The website for your library (e.g. “https://myawesomelibrary.info”). Optional.

  • The name of your library (e.g. “MyAwesomeLibrary”).

    Declaration

    Swift

    @objc
    public private(set) var name: String { get }
  • Your Stripe Partner ID (e.g. “pp_partner_1234”).

    Declaration

    Swift

    @objc
    public private(set) var partnerId: String { get }
  • The version of your library (e.g. “1.2.34”).

    Declaration

    Swift

    @objc
    public private(set) var version: String? { get }
  • url

    The website for your library (e.g. “https://myawesomelibrary.info”).

    Declaration

    Swift

    @objc
    public private(set) var url: String? { get }