Scan debit card with sort code and account number

1.7k views Asked by At

How can I scan Shortcode and account number with card.io SDK? enter image description here

I have implement two delegate for that

 func userDidCancel(_ paymentViewController: CardIOPaymentViewController!) {
    resultLabel.text = "user canceled"
    paymentViewController?.dismiss(animated: true, completion: nil)
}

func userDidProvide(_ cardInfo: CardIOCreditCardInfo!, in paymentViewController: CardIOPaymentViewController!) {
    if let info = cardInfo {
        let str = NSString(format: "Received card info.\n Number: %@\n expiry: %02lu/%lu\n cvv: %@.", info.redactedCardNumber, info.expiryMonth, info.expiryYear, info.cvv )

        if info.cardholderName != nil{  
            str.appending("\n Name: \(info.cardholderName)")
        }

        resultLabel.text = str as String
    }

    paymentViewController?.dismiss(animated: true, completion: nil)
}
0

There are 0 answers