SCPQrCodeDisplayInteraction

Objective-C


@interface SCPQrCodeDisplayInteraction : SCPPaymentInteraction

Swift

class QrCodeDisplayInteraction : PaymentInteraction

An interaction that requires a QR code to be displayed during payment confirmation.

  • The PaymentIntent being processed.

    Declaration

    Objective-C

    @property (nonatomic, strong, readonly) SCPPaymentIntent *_Nonnull paymentIntent;

    Swift

    var paymentIntent: SCPPaymentIntent { get }
  • The data required to display the QR code.

    Declaration

    Objective-C

    @property (nonatomic, strong, readonly) SCPQrCodeDisplayData *_Nonnull qrData;

    Swift

    var qrData: SCPQrCodeDisplayData { get }
  • Completes the interaction after the QR code is displayed, or reports an error.

    Declaration

    Objective-C

    - (void)completeWithError:(nullable NSError *)error;

    Swift

    func complete(error: (any Error)?)

    Parameters

    error

    An error if QR code display failed, or nil if successful.