In the SDK sample code, you can only assign the card by scanning it. 

Please attached sample code to assign CSN number manually.