Projet

Général

Profil

Development #48135

pafyip_ws: accepter transaction_id, orderid, subject et exer libre

Ajouté par Benjamin Dauvergne il y a plus de 3 ans. Mis à jour il y a plus de 3 ans.

Statut:
Fermé
Priorité:
Normal
Assigné à:
Version cible:
-
Début:
30 octobre 2020
Echéance:
% réalisé:

0%

Temps estimé:
Patch proposed:
Oui
Planning:
Non

Description

Avec cet algo

Si arg.exer:
   exer=arg.exer
Sinon
   exer=année en cours

Si arg.refdet:
   refdet = arg.refdet
Ou si arg.transaction_id et arg.transaction_id.match('^[A-Za-z0-9]{1,30}$'):
   refdet = transaction_id
Ou si orderid and arg.orderid.match('^[A-Za-z0-9]{1,30}$'):
   refdet = arg.orderid
Sinon:
   refdet = date('%Y%m%d') + random([A-Za-z0-9], 22)

objet = []

Si arg.orderid et refdet != arg.orderid:
   objet.append(arg.orderid)

Si arg.subject:
   objet.append(arg.subject)

Si arg.transaction_id et refdet != arg.transaction_id:
   objet.append(arg.transaction_id)

objet = ' '.join(objet)
objet = objet.simplify()  # ne conserver que A-Z a-z 0-9 et les espaces
objet = objet[:100] # contrainte payfip


Fichiers

Révisions associées

Révision 4ba0534d (diff)
Ajouté par Benjamin Dauvergne il y a plus de 3 ans

payfip_ws: add new request() parameters (#48135)

The added parameters are :
  • subject, to pass the description of a payment,
  • orderid, to pass the order number for the payment,
  • transaction_id, to identify a payment with an external identifier,
  • exer, custom field for PayFiP.

Historique

#1

Mis à jour par Benjamin Dauvergne il y a plus de 3 ans

Construit au dessus de #47670.

#2

Mis à jour par Serghei Mihai il y a plus de 3 ans

  • Statut changé de Solution proposée à Solution validée
#3

Mis à jour par Benjamin Dauvergne il y a plus de 3 ans

  • Statut changé de Solution validée à Résolu (à déployer)
commit 4ba0534d01e3c385238f95a406c06a839d282fa8
Author: Benjamin Dauvergne <bdauvergne@entrouvert.com>
Date:   Fri Oct 30 09:57:15 2020 +0100

    payfip_ws: add new request() parameters (#48135)

    The added parameters are :
    * subject, to pass the description of a payment,
    * orderid, to pass the order number for the payment,
    * transaction_id, to identify a payment with an external identifier,
    * exer, custom field for PayFiP.
#4

Mis à jour par Frédéric Péters il y a plus de 3 ans

  • Statut changé de Résolu (à déployer) à Solution déployée

Formats disponibles : Atom PDF