onQrCodeDisplayRequired
open fun onQrCodeDisplayRequired(paymentIntent: PaymentIntent, qrData: QrCodeDisplayData, callback: QrCodeDisplayCallback)
This method is called when a QR code should be displayed to the user during payment processing. Your app should display the QR code to the customer and call the callback once the QR code is successfully shown. Payment confirmation will block until the callback is invoked.
Parameters
paymentIntent
The PaymentIntent being processed
qrData
The QrCodeDisplayData containing the QR code image URLs and expiration information
callback
The QrCodeDisplayCallback to invoke when the QR code is successfully displayed or fails