Changed `createPayment` method to accept a `Cart` object instead of an `Order` object, since PrestaShop doesn't create an order yet at the point this method needs to be called.