Implement QR code payment
Overview
SDK Integration
Check prerequisites
func checkCardSupportForQR(card: DigitalCard) async throws -> Bool {
return try await card.details.isPaymentTypeSupported(.qr)
}Create the QR payment input data
let amount = "000000500030" // 5000.30 EUR
let currency = "0978" // EUR
let aid = "00000000000000000000000000000000" // 16 bytes long
let idd = "000000000000000000000000000000" // 15 bytes long
let inputData = QRPaymentSession.QRPaymentInputData(amount: amount, currencyCode: currency, aid: aid, idd: idd)Input data
Format
Length
Description
Generate QR payment data
Parameter
Description
Handle status word
Status word value
Description
Handle errors
Error
Description
Full implementation example
Generate and display QR code image
Last updated
Was this helpful?