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
-
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 )