Commit Graph

59 Commits

Author SHA1 Message Date
Benjamin Dauvergne 7f54812533 systempayv2: add support for chosen transaction_id (#48064) 2020-10-29 17:53:13 +01:00
Benjamin Dauvergne 7fa4e35641 systempayv2: map DENIED and CANCELLED result codes (#17065) 2020-10-15 21:05:36 +02:00
Benjamin Dauvergne b1ebd698b3 systempayv2: do not use filesystem for unique vads_trans_id (#47534)
vads_trans_id character space is larger than what we use, using 6
alphanumeric characters probability of collision on a day is small, 1 on
2*10^9.

https://paiement.systempay.fr/doc/fr-FR/form-payment/reference/vads-trans-id.html
2020-10-15 21:04:51 +02:00
Benjamin Dauvergne b0ca39636a systempayv2: change type of vads_trans_id to alphanumeric (#47534) 2020-10-15 21:04:51 +02:00
Benjamin Dauvergne 4b7824a996 systempayv2: use SHA-1 algorithm by default (#47094)
gitea/eopayment/pipeline/head Build started... Details
2020-09-28 15:40:18 +02:00
Serghei Mihai cae250d132 systempayv2: implement HMAC SHA256 signature (#46658) 2020-09-15 15:20:10 +02:00
Serghei Mihai f7d698c71f ststempayv2: accept alphanum in test and production secrets (#46638) 2020-09-15 09:57:41 +02:00
Valentin Deniaud ab3d0d1506 systempayv2: do not rely on outside scope for validation (#43030) 2020-05-19 14:59:10 +02:00
Benjamin Dauvergne 768f65f72f misc: style, PEP8 2020-04-10 11:56:48 +02:00
Benjamin Dauvergne 8a9f36e522 systempay: removed unused import (#41320) 2020-04-04 12:12:07 +02:00
Benjamin Dauvergne 70bf7295b6 systempay: copy vads_effective_creation_date to response.transaction_date (#41320) 2020-04-04 12:12:00 +02:00
Emmanuel Cazenave ebf1254392 systempayv2: increase authorized length in urls (#39016) 2020-01-16 14:30:40 +01:00
Emmanuel Cazenave b113829f2e expose transaction capabilities (#32969)
And implement the first one, manual validation for
systempayv2 and paybox.
2019-05-14 17:53:56 +02:00
Emmanuel Cazenave 980ab967ba allow arbitrary date for deferred payment (#26992) 2018-11-12 15:18:10 +01:00
Emmanuel Cazenave 231d75f34c systempayv2: set correct choices for 'vads_validation_mode' (#26906) 2018-10-02 12:25:04 +02:00
Thomas NOËL e8f12c5d1f add a message in ResponseErrors (#25773) 2018-08-22 23:14:53 +02:00
Frédéric Péters 887832bc5f add python3 compatibility (#23720) 2018-07-26 16:25:28 +02:00
Serghei Mihai ea7e051c9e systempayv2: allos spaces in user first and last names (#13834) 2016-11-03 14:31:15 +01:00
Serghei Mihai 09f2ec7e3d systempayv2: handle properly unicode params (#13562) 2016-10-13 15:13:27 +02:00
Serghei Mihai b8e60c72d2 systempayv2, sips2: update fields for passing user full name (#12447)
Log input params at backends initialization.
2016-09-12 14:09:12 +02:00
Benjamin Dauvergne d0c523ff12 systempayv2: force field's name and values to be unicode (fixes #10846) 2016-06-16 14:59:35 +02:00
Frédéric Péters f0a4bdddcd systempayv2: use string for vads_currency (#11382) 2016-06-16 10:06:12 +02:00
Benjamin Dauvergne a2a8936f64 remove double definition of VADS_TRANS_ID 2016-06-13 09:31:14 +02:00
Serghei Mihai b96a95e6ec systempayv2. fix signature logging (#10723) 2016-04-20 17:11:21 +02:00
Frédéric Péters 60a71c626e general: check responses for required attributes as 1st processing step (#9729) 2016-03-09 22:31:40 +01:00
Frédéric Péters a7dcc7a5e5 general: give same signature to all Payment object constructors (#10030) 2016-02-18 16:29:01 +01:00
Frédéric Péters 1872b62589 lost part of b69cefbfa8 (#9998) 2016-02-16 19:13:27 +01:00
Benjamin Dauvergne 18ce89571b systempayv2: extract tests from module 2016-02-16 18:26:20 +01:00
Frédéric Péters b69cefbfa8 standardise normal_return_url and automatic_return_url options (#9998) 2016-02-16 18:20:48 +01:00
Serghei Mihai 8cd625e465 pass order id to all backends (#9941) 2016-02-16 15:56:56 +01:00
Benjamin Dauvergne 8c0def0c29 implement payzen backend by inheriting systempayv2 (fixes #8854) 2015-11-19 10:47:22 +01:00
Benjamin Dauvergne 9cc7479088 fix tests 2015-10-06 21:52:43 +02:00
Benjamin Dauvergne de767e7022 eopayment: send request using a form and the POST method (fixes #6425)
also normalize all parameters to unicode.
2015-07-22 00:39:25 +02:00
Benjamin Dauvergne 91847deeb6 systempayv2: pep8ness 2015-07-22 00:28:39 +02:00
Benjamin Dauvergne 768545df13 eopayment: make all response() methods accept **kwargs (#7496) 2015-07-16 14:19:28 +02:00
Benjamin Dauvergne 02bf620f94 Add test vector for systempayv2 to validate the signature algorithm 2015-03-31 14:18:35 +02:00
Thomas NOËL db67c3887d add response.test flag
on tipi, spplus and systempayv2 only.
2014-03-30 19:27:48 +02:00
Benjamin Dauvergne a4b47d91f4 Merge branch 'master' of git://github.com/strycore/eopayment
Conflicts:
	eopayment/systempayv2.py
2013-03-29 18:45:36 +01:00
Benjamin Dauvergne 3a1b3f651f systempayv2: do not try to validate email fields, we suppose the caller knows better 2012-11-23 09:46:50 +01:00
Benjamin Dauvergne 98ed00315a remove unused import 2012-10-10 14:56:46 +02:00
Benjamin Dauvergne 7813a109c7 vads_cust_name can contain spaces, its type is "ans" no "an" 2012-10-05 16:08:27 +02:00
Benjamin Dauvergne 5b1ba343eb systempayv2: the date must be in the UTC zone 2012-10-05 10:47:59 +02:00
Benjamin Dauvergne 3689d539d0 add more parameters to request() 2012-10-03 17:30:13 +02:00
Benjamin Dauvergne 1002b95117 augment the number of arguments accepted by the request method 2012-09-24 15:43:55 +02:00
Mathieu Comandon d3e3d43bec pep8 on systempay 2012-07-10 18:04:22 +02:00
Benjamin Dauvergne 9db43f448c systempayv2: does not use syntax from python 2.7 2012-06-01 16:45:16 +02:00
Benjamin Dauvergne 34408e855f systempayv2: amount unit is cents 2012-05-29 17:43:51 +02:00
Benjamin Dauvergne b3254d60f4 properly initialize PaymentResponse.result attribute 2012-05-29 16:55:55 +02:00
Benjamin Dauvergne 17171f56ac systempayv2: finish response handling, fix signature checking for responses 2012-05-29 14:50:23 +02:00
Benjamin Dauvergne 0b114b0cb9 systempayv2: improve parameter descriptions 2012-05-29 14:49:26 +02:00