STPAppInfo
public class STPAppInfo
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
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”). Required for Stripe Verified Partners, optional otherwise.
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
public private(set) var name: String { get }
-
Your Stripe Partner ID (e.g. “pp_partner_1234”).
Declaration
Swift
public private(set) var partnerId: String? { get }
-
The version of your library (e.g. “1.2.34”).
Declaration
Swift
public private(set) var version: String? { get }
-
The website for your library (e.g. “https://myawesomelibrary.info”).
Declaration
Swift
public private(set) var url: String? { get }