Affirm is growing and becoming more profitable in the buy-now-pay-later sector, but faces risks from credit issues and strong competition.