You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

55 lines
2.6KB

  1. <?php
  2. use common\models\Etablissement ;
  3. /*
  4. * To change this license header, choose License Headers in Project Properties.
  5. * To change this template file, choose Tools | Templates
  6. * and open the template in the editor.
  7. */
  8. $this->title = 'Paiement';
  9. $etat_paiement = Yii::$app->user->identity->etatPaiementEtablissement() ;
  10. ?>
  11. <h1>Paiement</h1>
  12. <div class="alert alert-warning">
  13. <?php if($etat_paiement == Etablissement::PAIEMENT_ESSAI_TERMINE): ?>
  14. Votre période d'essai gratuite est terminée.<br />
  15. Vous pouvez continuer à bénéficier de ce service en vous abonnant à <strong>La boîte à pain</strong>
  16. pour <strong>30 € / mois</strong>
  17. <?php elseif($etat_paiement == Etablissement::PAIEMENT_RETARD): ?>
  18. Nous constatons un retard de paiement sur votre compte.<br />
  19. Nous vous invitons à vérifier que tout est en ordre au niveau de votre compte Paypal ou à vous
  20. abonner à nouveau en utilisant le bouton ci-dessous (<strong>30 € / mois</strong>).
  21. <?php elseif($etat_paiement == Etablissement::PAIEMENT_ESSAI): ?>
  22. Si vous souhaitez profiter de ce service au-delà de la période d'essai gratuite,
  23. abonnez-vous à <strong>La boîte à pain</strong> pour <strong>30 € / mois</strong>.
  24. <?php endif; ?>
  25. </div>
  26. <div class="alert alert-info">Si vous rencontrez des difficultés, n'hésitez pas à nous contacter.</div>
  27. <!--<h2>Prod</h2>
  28. <form action="https://www.sandbox.paypal.com/cgi-bin/webscr" method="post" target="_top">
  29. <input type="hidden" name="cmd" value="_s-xclick">
  30. <input type="hidden" name="hosted_button_id" value="K96K2WLBSBDSA">
  31. <input name="custom" value="<?php echo Yii::$app->user->identity->id; ?>" type="hidden" />
  32. <input type="image" src="https://www.paypalobjects.com/fr_FR/FR/i/btn/btn_subscribeCC_LG.gif" border="0" name="submit" alt="PayPal, le réflexe sécurité pour payer en ligne">
  33. <img alt="" border="0" src="https://www.paypalobjects.com/fr_FR/i/scr/pixel.gif" width="1" height="1">
  34. </form>-->
  35. <!--<h2>Test</h2>-->
  36. <form action="https://www.sandbox.paypal.com/cgi-bin/webscr" method="post" target="_top">
  37. <input type="hidden" name="cmd" value="_s-xclick">
  38. <input type="hidden" name="hosted_button_id" value="USASPWAC39S4N">
  39. <input name="custom" value="<?php echo Yii::$app->user->identity->id; ?>" type="hidden" />
  40. <input type="image" src="https://www.sandbox.paypal.com/fr_FR/FR/i/btn/btn_subscribeCC_LG.gif" border="0" name="submit" alt="PayPal, le réflexe sécurité pour payer en ligne">
  41. <img alt="" border="0" src="https://www.sandbox.paypal.com/fr_FR/i/scr/pixel.gif" width="1" height="1">
  42. </form>