QRPaymentSession
public final actor QRPaymentSession
QRPaymentSession class to generate QR payment data for PURE QR based payments.
-
The output data structure for QR code payments, encapsulating various data elements required for the transaction.
See moreDeclaration
Swift
public struct QRPaymentOutputData : Sendable -
The input data structure for initializing QR code payments.
See moreDeclaration
Swift
public struct QRPaymentInputData : Sendable -
Initializes the QR Payment Session
Declaration
Swift
public init() -
Generates QR payment data for QR payment transactions
Throws:
qrPaymentFailed(_:)if QR payment has failed.deviceEnvironmentUnsafe(_:)if device environment is unsafe.unsupportedPaymentType(_:)if payment type is unsupported.sessionInProgressif error encountered when one payment session is already in progress and trying to make another payment.invalidQRInputData(_:)if the QR input data is invalid.
Declaration
Swift
public func generateQRPaymentData( withQRPaymentInputData qrPaymentInputData: QRPaymentInputData, digitalCardID: String? = nil, userPrompt: String? = nil ) async throws -> QRPaymentOutputDataParameters
qrPaymentInputDataInput data of type QRPaymentInputData to support payment initialization
digitalCardIDrespective card id of the requested payment
userPromptString from user for Authentication prompt message
Return Value
QRPaymentOutputData: QR output data to support QR payment. The function thows QRPaymentSession.Error on any error.
-
QRPaymentSession Error
See moreDeclaration
Swift
public enum Error : Swift.Error, Sendable
QRPaymentSession Actor Reference