refactor paiement