View Javadoc
1   /*
2    * Copyright (c) 2002-2014, Mairie de Paris
3    * All rights reserved.
4    *
5    * Redistribution and use in source and binary forms, with or without
6    * modification, are permitted provided that the following conditions
7    * are met:
8    *
9    *  1. Redistributions of source code must retain the above copyright notice
10   *     and the following disclaimer.
11   *
12   *  2. Redistributions in binary form must reproduce the above copyright notice
13   *     and the following disclaimer in the documentation and/or other materials
14   *     provided with the distribution.
15   *
16   *  3. Neither the name of 'Mairie de Paris' nor 'Lutece' nor the names of its
17   *     contributors may be used to endorse or promote products derived from
18   *     this software without specific prior written permission.
19   *
20   * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
21   * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
22   * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
23   * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE
24   * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
25   * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
26   * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
27   * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
28   * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
29   * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
30   * POSSIBILITY OF SUCH DAMAGE.
31   *
32   * License 1.0
33   */
34  package fr.paris.lutece.plugins.paybox.util;
35  
36  
37  /**
38   * PayboxErrorConstants.
39   * Contains paybox error constants.
40   */
41  public final class PayboxErrorConstants
42  {
43      /** Opération réussie */
44      public static final String CODE_ERROR_OPERATION_REUSSIE = "00000";
45  
46      /**
47       * La connexion au centre d’autorisation a échoué. Vous pouvez dans ce cas
48       * là effectuer les redirections des internautes vers le FQDN
49       * tpeweb1.paybox.com.
50       */
51      public static final String CODE_ERROR_CONNECTION_FAILED = "00001";
52  
53      /**
54       * Paiement refusé par le centre d’autorisation [voir §12.1 Codes réponses
55       * du centre d’autorisation].
56       * En cas d’autorisation de la transaction par le centre d’autorisation de
57       * la banque ou de l’établissement financier privatif, le code erreur
58       * “00100�? sera en fait remplacé directement par “00000�?.
59       */
60      public static final String CODE_ERROR_CONNECTION_DENIED = "001xx";
61  
62      /**
63       * Erreur Paybox.
64       */
65      public static final String CODE_ERROR_PAYBOX = "00003";
66  
67      /**
68       * Numéro de porteur ou cryptogramme visuel invalide.
69       */
70      public static final String CODE_ERROR_WRONG_USER_NAME_OR_CRYPTOGRAM = "00004";
71  
72      /**
73       * Accès refusé ou site/rang/identifiant incorrect.
74       */
75      public static final String CODE_ERROR_ACCESS_DENIED = "00006";
76  
77      /**
78       * Date de fin de validité incorrecte.
79       */
80      public static final String CODE_ERROR_WRONG_EXPIRATION_DATE = "00008";
81  
82      /**
83       * Erreur de création d’un abonnement.
84       */
85      public static final String CODE_ERROR_SUBSCRIPTION_CREATION = "00009";
86  
87      /**
88       * Devise inconnue.
89       */
90      public static final String CODE_ERROR_UNKNOWN_CURRENCY = "00010";
91  
92      /**
93       * Montant incorrect.
94       */
95      public static final String CODE_ERROR_WRONG_AMOUNT = "00011";
96  
97      /**
98       * Paiement déjà effectué.
99       */
100     public static final String CODE_ERROR_ALREADY_DONE = "00015";
101 
102     /**
103      * Abonné déjà existant (inscription nouvel abonné). Valeur ‘U’ de la
104      * variable PBX_RETOUR.
105      */
106     public static final String CODE_ERROR_ALREADY_REGISTERED = "00016";
107 
108     /**
109      * Carte non autorisée.
110      */
111     public static final String CODE_ERROR_CARD_NOT_ALLOWED = "00021";
112 
113     /**
114      * Carte non conforme. Code erreur renvoyé lors de la documentation de la
115      * variable « PBX_EMPREINTE ».
116      */
117     public static final String CODE_ERROR_CARD_INVALID = "00029";
118 
119     /**
120      * Temps d’attente > 15 mn par l’internaute/acheteur au niveau de la page de
121      * paiements.
122      */
123     public static final String CODE_ERROR_TIMEOUT = "00030";
124 
125     /**
126      * Réservé
127      */
128     public static final String CODE_ERROR_RESERVED = "00031";
129 
130     /**
131      * Réservé
132      */
133     public static final String CODE_ERROR_RESERVED_2 = "00032";
134 
135     /**
136      * Code pays de l’adresse IP du navigateur de l’acheteur non autorisé.
137      */
138     public static final String CODE_ERROR_BLOCKED_IP = "00033";
139 
140     /**
141      * Opération sans authentification 3DSecure, bloquée par le filtre.
142      */
143     public static final String CODE_ERROR_3DSECURE = "00040";
144 
145     /**
146      * Instantiates a new paybox error constants.
147      */
148     private PayboxErrorConstants(  )
149     {
150     }
151 }