Fix undefined `info`/`cardInfo` variable in sample code snippets