Affirm Holdings Inc. shares are surging in midday trading Wednesday after the financial-technology company made its public debut.