added another state of error in payment if the payment is a success but the treatment has an error
This commit is contained in:
@@ -116,7 +116,8 @@ class Cipf {
|
||||
//const PAYPAL_CLIENT_ID = self::PAYPAL_HUGO_LIVE_CLIENT_ID;
|
||||
//const PAYPAL_CLIENT_SECRET = self::PAYPAL_HUGO_LIVE_CLIENT_SECRET;
|
||||
//const PAYPAL_API_BASE_URL = self::PAYPAL_HUGO_LIVE_API_BASE_URL;
|
||||
const PAYPAL_MESSAGE_SUCCESS = 'Paiement reussi, vous allez être redirigé-es vers votre espace';
|
||||
const PAYPAL_MESSAGE_SUCCESS = 'Paiement réussi, vous allez être redirigé-es vers votre espace';
|
||||
const PAYPAL_MESSAGE_PROBLEM = "Paiement réussi, mais une erreure est survenue dans le traitement de la commande, si vous voyez que votre compte n'est pas mis à jour correctement, contactez la fipf directement";
|
||||
const PAYPAL_MESSAGE_FAILURE = 'Paiement raté, vous allez être redirigé-es vers votre espace';
|
||||
|
||||
// ROLES
|
||||
@@ -147,6 +148,11 @@ vous allez être redirigés vers votre espace',
|
||||
'failure'=>
|
||||
'Paiement échoué,
|
||||
vous allez être redirigés vers votre espace',
|
||||
'problem'=>
|
||||
"Paiement réussi,
|
||||
mais une erreur est survenue dans le traitement de la commande,
|
||||
si vous voyez que votre compte n'est pas mis à jour correctement,
|
||||
contactez la fipf directement",
|
||||
],
|
||||
];
|
||||
const OPTION_EMAILS = [
|
||||
@@ -154,103 +160,94 @@ vous allez être redirigés vers votre espace',
|
||||
'_callback'=>'update_emails_settings_option_CIPF',
|
||||
'_default'=>[
|
||||
// 1. profs : email : payment_success : validation payment prof reussi, send email
|
||||
[
|
||||
'action'=>'payment_success',
|
||||
'payment_success'=>[
|
||||
'notification_send'=>true,
|
||||
'notification_to'=>'$$__admin_email__$$',
|
||||
'notification_subject'=>"paiement réussi",
|
||||
'notification_message'=>"par ici la monnaie",
|
||||
'confirmation_send'=>true,
|
||||
'confirmation_subject'=>"paiement réussi",
|
||||
'confirmation_mesage'=>"donne l'argent",
|
||||
'confirmation_message'=>"donne l'argent",
|
||||
],
|
||||
// 2. profs : email : payment_failure : validation payment prof echec, send email
|
||||
[
|
||||
'action'=>'payment_echec',
|
||||
'payment_echec'=>[
|
||||
'notification_send'=>true,
|
||||
'notification_to'=>'$$__admin_email__$$',
|
||||
'notification_subject'=>"",
|
||||
'notification_message'=>"",
|
||||
'confirmation_send'=>true,
|
||||
'confirmation_subject'=>"",
|
||||
'confirmation_mesage'=>"",
|
||||
'confirmation_message'=>"",
|
||||
],
|
||||
// 3. profs : email : transfert_success : validation transfert prof reussi, send email
|
||||
[
|
||||
'action'=>'transfert_success',
|
||||
'transfert_success'=>[
|
||||
'notification_send'=>true,
|
||||
'notification_to'=>'$$__admin_email__$$',
|
||||
'notification_subject'=>"",
|
||||
'notification_message'=>"",
|
||||
'confirmation_send'=>true,
|
||||
'confirmation_subject'=>"",
|
||||
'confirmation_mesage'=>"",
|
||||
'confirmation_message'=>"",
|
||||
],
|
||||
// 4. profs : email : transfert_failures : validation transfert prof echec, send email
|
||||
[
|
||||
'action'=>'transfert_echec',
|
||||
'transfert_echec'=>[
|
||||
'notification_send'=>true,
|
||||
'notification_to'=>'$$__admin_email__$$',
|
||||
'notification_subject'=>"",
|
||||
'notification_message'=>"",
|
||||
'confirmation_send'=>true,
|
||||
'confirmation_subject'=>"",
|
||||
'confirmation_mesage'=>"",
|
||||
'confirmation_message'=>"",
|
||||
],
|
||||
// 5. partners : email : offer_expired : offres temporaires -> gerer qu'elles disparaissent apres la date de validite -> la passer en masquer
|
||||
[
|
||||
'action'=>'offer_expired',
|
||||
'offer_expired'=>[
|
||||
'notification_send'=>true,
|
||||
'notification_to'=>'$$__admin_email__$$',
|
||||
'notification_subject'=>"",
|
||||
'notification_message'=>"",
|
||||
'confirmation_send'=>true,
|
||||
'confirmation_subject'=>"",
|
||||
'confirmation_mesage'=>"",
|
||||
'confirmation_message'=>"",
|
||||
],
|
||||
// 6. partners : email : offer_will_expire : la gestion des offres à échéance
|
||||
[
|
||||
'action'=>'offer_will_expire',
|
||||
'offer_will_expire'=>[
|
||||
'notification_send'=>true,
|
||||
'notification_to'=>'$$__admin_email__$$',
|
||||
'notification_subject'=>"",
|
||||
'notification_message'=>"",
|
||||
'confirmation_send'=>true,
|
||||
'confirmation_subject'=>"",
|
||||
'confirmation_mesage'=>"",
|
||||
// 7. payments : email : account_deleted : schedule event pour supprimer le compte xx temps (6 mois ?) apres fin de validite de la carte
|
||||
'confirmation_message'=>"",
|
||||
],
|
||||
[
|
||||
'action'=>'account_deleted',
|
||||
// 7. payments : email : account_deleted : schedule event pour supprimer le compte xx temps (6 mois ?) apres fin de validite de la carte
|
||||
'account_deleted'=>[
|
||||
'notification_send'=>true,
|
||||
'notification_to'=>'$$__admin_email__$$',
|
||||
'notification_subject'=>"",
|
||||
'notification_message'=>"",
|
||||
'confirmation_send'=>true,
|
||||
'confirmation_subject'=>"",
|
||||
'confirmation_mesage'=>"",
|
||||
'confirmation_message'=>"",
|
||||
],
|
||||
// 8. payments : email : account_will_expire : faire rappels emails avant expiration
|
||||
[
|
||||
'action'=>'eccount_will_expire',
|
||||
'eccount_will_expire'=>[
|
||||
'notification_send'=>true,
|
||||
'notification_to'=>'$$__admin_email__$$',
|
||||
'notification_subject'=>"",
|
||||
'notification_message'=>"",
|
||||
'confirmation_send'=>true,
|
||||
'confirmation_subject'=>"",
|
||||
'confirmation_mesage'=>"",
|
||||
'confirmation_message'=>"",
|
||||
],
|
||||
// 9. payments : email : account_expired : desactiver carte expiree
|
||||
[
|
||||
'action'=>'account_expired',
|
||||
'account_expired'=>[
|
||||
'notification_send'=>true,
|
||||
'notification_to'=>'$$__admin_email__$$',
|
||||
'notification_subject'=>"",
|
||||
'notification_message'=>"",
|
||||
'confirmation_send'=>true,
|
||||
'confirmation_subject'=>"",
|
||||
'confirmation_mesage'=>"",
|
||||
'confirmation_message'=>"",
|
||||
],
|
||||
],
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user