A mirror of the liberally licensed parts of Klarna's PHP API