capturePIN(using:cardReaderTransactionID:)
Presents a sheet to capture the PIN when required by the payment card issuer, and returns the previously encrypted card data including newly captured PIN data.
Declaration
func capturePIN(using token: PaymentCardReaderSession.PINToken, cardReaderTransactionID: String) async throws -> PaymentCardReadResultParameters
- token:
Valid and signed PIN token from a participating payment service provider.
- cardReaderTransactionID:
The Id of the previous read.
Mentioned in
Return Value
PaymentCardReadResult if the PIN was successfully captured.
Discussion
Call this method when the payment card issuer requests a PIN for the current transaction. When you call this method, the system displays UI with instructions on what the person needs to do. This UI remains onscreen until the system reads the person’s PIN, you cancel the operation, or an error occurs.