Commit Graph
30 Commits
Author SHA1 Message Date
JoshuaJan 1d0423b9ad [wrong model]not payment.acquirer but payment.transaction
bzr revid: popkar77@gmail.com-20131219145716-cybxgkamyyrnn238
2013-12-19 22:57:16 +08:00
Thibault Delavallée 321d096186 [IMP] [FIX] ogone: fixed controller to manage ogone response, because it was not updated with last changes of payment_acquirer module. Also added some check on data coming from ogone. Also fixed return URL management: ogone does not handle json-based custom parameters.
bzr revid: tde@openerp.com-20131204165005-ldymrsf9hdpvfl65
2013-12-04 17:50:05 +01:00
Thibault Delavallée 362953b4a2 [FIX] payment_acquirer: manage amount and fees as float fields with 2 digits, update management in rendering process accordingly.
bzr revid: tde@openerp.com-20131204160451-dwd66tav4poaag2m
2013-12-04 17:04:51 +01:00
Thibault Delavallée b7e8b40fb2 [IMP] payment_acquirer: improvements:
- added acquirer_reference standard field on the transaction, valid for most of acquirers
- fixed computation of partner_data before rendering the button, was broken when giving a
partner_id
- added support of tx_url to specify the form URL for the rendered button
- added support of submit_txt and submit_class to customize the submit button of the
rendered form

bzr revid: tde@openerp.com-20131204125227-3g017gue72ujjyqz
2013-12-04 13:52:27 +01:00
Thibault Delavallée 382829686d [CLEAN] payment_acquirer and acquirer implementation: cleaned code, removing duplicate code for managing transaction and partner values. Also removed dependency towards requests library. Updated acquirers data, not in no update.
bzr revid: tde@openerp.com-20131203142501-4cibxmcuvyp8uof9
2013-12-03 15:25:01 +01:00
Thibault Delavallée 7896d2e745 [MOV] payment_acquirer: moved paypal_fee_* fields to fees_*, standard fields for an acquirer.
bzr revid: tde@openerp.com-20131202155941-b8nbujgwf57fol2v
2013-12-02 16:59:41 +01:00
Thibault Delavallée 5ee3495ccb [MOV] payment_acquirer: moved fees computation into generic computation. Now acquirer have access to a fees key in the tx_values they receive for generating the buttons. Fees are computed by calling <name>_compute_fees.
bzr revid: tde@openerp.com-20131128170812-1p3ipj85e1rvuf8l
2013-11-28 18:08:12 +01:00
Thibault Delavallée 6564248f96 [CLEAN] payemnt_acquirer: moved some code for cleaning
bzr revid: tde@openerp.com-20131128163424-0m42q8hnert8gemk
2013-11-28 17:34:24 +01:00
Thibault Delavallée 27104e4888 [IMP] payment_acquirer: added company_id on the acquirer_model, to be able to know if the tx is domestic or international. Also added a fees field on the tx: should not be set by hand but by a specific acquirer.
bzr revid: tde@openerp.com-20131128161516-mlu0z1v5bjpwzcrv
2013-11-28 17:15:16 +01:00
Thibault Delavallée 256269242a [FIX] [IMP] payment_acquirer_paypal: fixed get_status (GET request -> give no data to urllib); cleaned a bit the code, extracted paypal contact to a dedicated method that tries 3 times if internal server error is given back by paypal + cleaned tests
bzr revid: tde@openerp.com-20131127152042-8va86q3zxsenjy6i
2013-11-27 16:20:42 +01:00
Thibault Delavallée e530dc0ab3 [IMP] [WIP] payment_acquirer_paypal: improved server2server communication + tests. Commit WIP for backup.
bzr revid: tde@openerp.com-20131122163256-f4l8b2kcrtzus56s
2013-11-22 17:32:56 +01:00
Thibault Delavallée 2c9cf343b9 [IMP] payment_acquirer: added utils methods to format partner address / name
bzr revid: tde@openerp.com-20131122114708-c14ujol8lz90jnab
2013-11-22 12:47:08 +01:00
Thibault Delavallée a64c16aac5 [FIX] payment.acquirer: now passing xml_id instead of id for the template to render.
Indeed render accepts view ID, but the qweb engine does not handle
IDs, only xml_ids. Using the view xml_id field allows to avoid
having a hack in the server.

bzr revid: tde@openerp.com-20131121133309-qq2alstapq5sonkm
2013-11-21 14:33:09 +01:00
Thibault Delavallée bfc226c4ae [REM] payment_acquirer: removed name field, only using reference
bzr revid: tde@openerp.com-20131121120722-uxjqdn5ibnrs0k10
2013-11-21 13:07:22 +01:00
Thibault Delavallée 9bca2bbaac [IMP] payment_acquirer, payment_acquirer_transfer
- payment_acquirer: added base method for form-based validation
calling various model-dependant methods.

[FIX] payment_acquirer: fixed tx values not given to form to render
when having no custom method for a specific acquirer

- payment_acquirer_transfer: added form validation, using the new
acquirer method. Updated controllers. Updated generated form to include
tx details. Fixed method for form_action_url taht was missing.

bzr revid: tde@openerp.com-20131120140119-8zuvm2ypr5arvf5y
2013-11-20 15:01:19 +01:00
Thibault Delavallée ff8498fff0 [ADD] payment_acquirer: added message field, displaying information about the process specific to the acquirer
bzr revid: tde@openerp.com-20131119172516-peyefk8ciz2hip57
2013-11-19 18:25:16 +01:00
Thibault Delavallée 18e45e9c1e [CLEAN] payment_acquirer: mise cleaning
bzr revid: tde@openerp.com-20131119164428-sq30m2jg1lcps00t
2013-11-19 17:44:28 +01:00
Thibault Delavallée fe1841e23a [DOC] payment_acquirer: added comments in payment_acquirer and payment_transaction models, removed unnecessary licence
bzr revid: tde@openerp.com-20131119164102-dzhiynea3dgtad53
2013-11-19 17:41:02 +01:00
Thibault Delavallée 4f6e792733 [IMP] website_sale: improved checkout process
- now going to shop/confirmation when coming back from the acquirer
- added poll on the confirmation page to wait for data from acquirer
- misc cleaning of checkout process, order and transaction management
- added cancel state on payment.transaction, when canceled by the
customer

bzr revid: tde@openerp.com-20131119160129-fkwkhjvk1bh0uarf
2013-11-19 17:01:29 +01:00
Thibault Delavallée b5d142e08a [IMP] payment_acquirer, paypal, ogone: improved back-end form viewsé
bzr revid: tde@openerp.com-20131118161102-4kw3xewd1czbyrdb
2013-11-18 17:11:02 +01:00
Thibault Delavallée 552b6adee9 [WIP] payment_acquirer: base for a generic server 2 server method
bzr revid: tde@openerp.com-20131115170800-1fq5xm573pwo8d5e
2013-11-15 18:08:00 +01:00
Thibault Delavallée 7c49c1fa17 [IMP] payment_acquirer: improved classic views of payment.acquirer and payment.transaction models
bzr revid: tde@openerp.com-20131115152240-pat403pflcnffba5
2013-11-15 16:22:40 +01:00
Thibault Delavallée 6e3dd819ea [IMP] payment_acquirer: various improvements
- added a constraint on reference that should be unique
- remove dead method validate
- added some comments
- improved payment.transaction views

bzr revid: tde@openerp.com-20131115132838-8nta3pq1ftj8t2q5
2013-11-15 14:28:38 +01:00
Thibault Delavallée 3d1db686c3 [CLEAN] payment_acquirer_* modules: some code cleaning
Cleaned init files, removing some licences (keeping only in init and openerp
in base directory of modules). Cleaned some class name, added forgotten
test file for payment_acquirer_transfer.

bzr revid: tde@openerp.com-20131108101005-a149bvatw5w6sdql
2013-11-08 11:10:05 +01:00
Thibault Delavallée 04e6a95cd5 [ADD] [MOV] payment_acquirer: added transfer payment acquirer
Only dummy module currently. Allowed to remove some old stuff from payment_acquirer.

bzr revid: tde@openerp.com-20131108094444-to0kgzkl2agqkdps
2013-11-08 10:44:44 +01:00
Thibault Delavallée b2ea74e4e6 [REF] payment: moved paypal and ogone stuff into their dedicated modules.
Added payment_acquirer_paypal and .._ogone modules. Those modules hold
the model / data / controllers related to the specific acquirer.

Also updated website_payment, to use website.menu instead of custom change
in header, as menus are now editable.

bzr revid: tde@openerp.com-20131107180444-bbzobquqq9o6pctv
2013-11-07 19:04:44 +01:00
Thibault Delavallée 7fe8885216 [ADD] payment_acquirer: first implementation of paypal and ogone acquirers.
paypal: only form is currently implemented. Method name and call order will change.
However the basic mechanism is impelmented. IPN is implemented (paypal contact us
back after the transaction with transaction details).

ogone: form and server2server are implemented. Method names and call order will
change. Based on chs / dle / ... implementation for ogone server2server.

basic addition of tests, still wip.

This commit is not a clean commit but a WIP commit. Please excuse me
but it's time to commit.

bzr revid: tde@openerp.com-20131107172236-chmg198305crgrud
2013-11-07 18:22:36 +01:00
Thibault Delavallée 3d0ac6643e [IMP] payment_acquirer: continuing base model.
Two main models : payment.acquirer and payment.transaction.

payment.acquirer models the acquirer: paypal, ogone. Each specific
acquirer will inherit from the class and add specific fields.

payment.transaction models the transaction itself. It has basic fields
for a transaction: date, partner, partner fields (to hold data at
transaction time), reference, state and its message, amount, currency.

Class methods are not finished and still quite WIP.

payment.acqurier has a render method that is used to render
its form. The form is the 'pay now' button with the specific
sementic of each acquirer.

This model is supposed to work on form-based and server-to-server
implementation methods.

bzr revid: tde@openerp.com-20131107171558-jrwrj3ll9kol6bav
2013-11-07 18:15:58 +01:00
Thibault Delavallée 25d3f4b1a5 [ADD] [CLEAN] payment_acquirer:
- lint / cleanup of models/payment_acquirer.py. No changes made, only link cleanup
such as missing imports, typos, missing methods.

Added ogone_errors file containing the ogone errors description that was called
but missing in the module. It is taken from openerp-custom module.

bzr revid: tde@openerp.com-20131024142050-a9b9tjzw9y5qjhia
2013-10-24 16:20:50 +02:00
Thibault Delavallée 005a00ad50 [REF] payment_acquirer: refactored module according to
new OpenERP addon guidelines :
- models -> for model-related files
- data -> all data
Updated init / openerp files accordingly

bzr revid: tde@openerp.com-20131024135854-ve8d5yw1umcwz2b0
2013-10-24 15:58:54 +02:00