SCPReaderPaymentInteractionDelegate

Objective-C

@protocol SCPReaderPaymentInteractionDelegate <NSObject>

Swift

protocol ReaderPaymentInteractionDelegate : NSObjectProtocol

Implement this protocol to handle payment interactions for mobile and tap to pay readers that require your application to display UI and provide a response before the payment can continue.

The provided delegate must be retained by your application until the reader disconnects.

  • This method is called when a payment interaction requires a response from your application.

    Inspect the concrete SCPPaymentInteraction subclass to determine which UI to display and use its completion method to continue the payment.

    Declaration

    Objective-C

    - (void)reader:(nonnull SCPReader *)reader
        didRequestInteraction:(nonnull SCPPaymentInteraction *)interaction;

    Swift

    func reader(_ reader: SCPReader, didRequestInteraction interaction: SCPPaymentInteraction)

    Parameters

    reader

    The originating reader.

    interaction

    The payment interaction requiring a response.