Protocols
The following protocols are available globally.
-
Objects conforming to STPAPIResponseDecodable can be automatically converted from a JSON dictionary that was returned from the Stripe API.
See moreDeclaration
Swift
@objc public protocol STPAPIResponseDecodable : NSObjectProtocol
-
Objects conforming to STPFormEncodable can be automatically converted to a form-encoded string, which can then be used when making requests to the Stripe API.
See moreDeclaration
Swift
@objc public protocol STPFormEncodable : NSObjectProtocol
-
Objects conforming to this protocol can be attached to a Stripe Customer object as a payment source.
See moreDeclaration
Swift
@objc public protocol STPSourceProtocol : NSObjectProtocol
-
See moreSTPAuthenticationContext
provides information required to present authentication challenges to a user.Declaration
Swift
@objc public protocol STPAuthenticationContext : NSObjectProtocol