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 more

    Declaration

    Swift

    public struct QRPaymentOutputData : Sendable
  • The input data structure for initializing QR code payments.

    See more

    Declaration

    Swift

    public struct QRPaymentInputData : Sendable
  • Initializes the QR Payment Session

    Declaration

    Swift

    public init()
  • Generates QR payment data for QR payment transactions

    Throws:

    Declaration

    Swift

    public func generateQRPaymentData(
        withQRPaymentInputData qrPaymentInputData: QRPaymentInputData,
        digitalCardID: String? = nil,
        userPrompt: String? = nil
    ) async throws -> QRPaymentOutputData

    Parameters

    qrPaymentInputData

    Input data of type QRPaymentInputData to support payment initialization

    digitalCardID

    respective card id of the requested payment

    userPrompt

    String 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 more

    Declaration

    Swift

    public enum Error : Swift.Error, Sendable