STPAppInfo
@interface 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
Objective-C
- (nonnull instancetype)initWithName:(nonnull NSString *)name partnerId:(nonnull NSString *)partnerId version:(nullable NSString *)version url:(nullable NSString *)url;
Swift
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.
-
Unavailable
Use
initWithName:partnerId:version:url:
instead.Declaration
Objective-C
- (nonnull instancetype)init;
-
The name of your library (e.g. “MyAwesomeLibrary”).
Declaration
Objective-C
@property (readonly, nonatomic) NSString *_Nonnull name;
Swift
var name: String { get }
-
Your Stripe Partner ID (e.g. “pp_partner_1234”).
Declaration
Objective-C
@property (readonly, nonatomic) NSString *_Nonnull partnerId;
Swift
var partnerId: String { get }
-
The version of your library (e.g. “1.2.34”).
Declaration
Objective-C
@property (readonly, nonatomic, nullable) NSString *version;
Swift
var version: String? { get }
-
The website for your library (e.g. “https://myawesomelibrary.info”).
Declaration
Objective-C
@property (readonly, nonatomic, nullable) NSString *url;
Swift
var url: String? { get }