STPPinManagementService
public class STPPinManagementService : NSObject
STPAPIClient extensions to manage PIN on Stripe Issuing cards
-
The API Client to use to make requests. Defaults to STPAPIClient.shared
Declaration
Swift
public var apiClient: STPAPIClient
-
The STPAPIClient instance to use to make API requests to Stripe. Defaults to
STPAPIClient.shared
.Declaration
Swift
@available(swift, deprecated: 0.0.1, renamed: "apiClient") @objc(apiClient) public var _objc_apiClient: _stpobjc_STPAPIClient { get set }
-
Create a STPPinManagementService, you must provide an implementation of STPIssuingCardEphemeralKeyProvider
Declaration
Swift
@objc public init(keyProvider: STPIssuingCardEphemeralKeyProvider)
-
Retrieves a PIN number for a given card, this call is asynchronous, implement the completion block to receive the updates
Declaration
Swift
@objc public func retrievePin( _ cardId: String, verificationId: String, oneTimeCode: String, completion: @escaping STPPinCompletionBlock )
-
Updates a PIN number for a given card, this call is asynchronous, implement the completion block to receive the updates
Declaration
Swift
@objc public func updatePin( _ cardId: String, newPin: String, verificationId: String, oneTimeCode: String, completion: @escaping STPPinCompletionBlock )