Commit Graph

18 Commits

Author SHA1 Message Date
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 88b7b449cb [IMP] acquirers: added support of context-based submit button customize + transaction url. Also removed all fields holding transaction URLS; calling a method should be sufficient. Also standardized acquirer buttons.
bzr revid: tde@openerp.com-20131204130505-webiutb22kb7t4il
2013-12-04 14:05:05 +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 b1cbcb5f2b [TEST] payment_acquirer_paypal, ogone: commented import of tests, because they should not run without having acquirer data configured. Also set website_payment as inactive to avoid having it installed by default on runbot.
bzr revid: tde@openerp.com-20131126145112-1sqoxj4vtwbd3xzw
2013-11-26 15:51:12 +01:00
Thibault Delavallée 53252152bc [ADD] payment_acquirer, transfer, ogone and paypal integration into ecommerce
[ADD] payment_acquirer module, holding :
- payment.acquirer model: models the acquirer with the various credentials (e.g. paypal, ogone). payment_acquirer only contains basic fields. Each acquirer can add fields through inheritance. See payment.acquirer model for more details.
- payment.transaction model: models the transaction itself. Inheritance is done by calling custom methods prefixed by the acquirer name. See payment.transaction model for more details.

[ADD] payment_acquirer_ogone, payment_acquirer_paypal and payment_acquirer_transfer modules. Those are specific implementations for ogone, paypal and basic money transfer. They contain dummy account data, to avoid committing real accounts. Will have to be cleaned before final merge. Those module contain tests but some tests will not work without real account creadentials. To be cleaned.

[ADD] website_payment: a test module for payment. Will have to be cleaned.

[IMP] website_sale: added support of payments in the checkout process. Improved checkout process. Confirmation is now basically a view on a sale.order, and a polling on a transaction to see its status. Context / Session are better managed, but still require some cleaning. Also fixed some links in the shop.

[TODO]
- some cleaning in paypal / ogone about form methods
- improve some tests
- clean checkout process after more tests
- cleaning in ogone server2server + tests

bzr revid: tde@openerp.com-20131121134140-3somglek7dk1o6t1
2013-11-21 14:41:40 +01:00
Thibault Delavallée 91be9da35b [CLEAN] payment_acquirer_ogone: removed unnecessary call to self.pool.get
bzr revid: tde@openerp.com-20131120140158-rrb439gnx4rs5zyg
2013-11-20 15:01:58 +01:00
Thibault Delavallée 5fddd6b6f2 [CLEAN] payment_acquirer_ogone: misc cleaning + code cleaning in controller
bzr revid: tde@openerp.com-20131119172645-h4d2iiesp8wi1z7f
2013-11-19 18:26:45 +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 7c372e8f28 [IMP] payment_acquirer_paypal: improvements
- cleaned feedback: same method naming as ogone, cleaned method, now called
by the controller. IPN basically works.
- cleaned controllers
- cleaned test module website_payment a bit about paypal
- added support of custom, to give and receive back custom values with paypal

bzr revid: tde@openerp.com-20131118123314-jkfomek10ncq7mlu
2013-11-18 13:33:14 +01:00
Thibault Delavallée d4064d82c3 [CLEAN] payment_acquirer_ogone: misc cleaning in module - test
bzr revid: tde@openerp.com-20131118111732-jdko48ebeylwqpyr
2013-11-18 12:17:32 +01:00
Thibault Delavallée 9324e026d5 [TEST] payment_acquirer_ogone: added / cleaned tests + some code cleaning
bzr revid: tde@openerp.com-20131115170707-3godrd7b7aht14j7
2013-11-15 18:07:07 +01:00
Thibault Delavallée 9e1753e98b [IMP] payment_acquirer_ogone: improved urls in rendered button, now using urljoin; added support of PARAMPLUS in button; various fixes due to method renaming; improved controllers; updated tests
bzr revid: tde@openerp.com-20131115133047-eggqo2a3sapzri2j
2013-11-15 14:30:47 +01:00
Thibault Delavallée 825c6ec7c3 [CLEAN] payment_acquirer_* modules
Cleaned openerp declarations. Added icons. Added basic doc directory
and changelog.

bzr revid: tde@openerp.com-20131108105921-2vheg10ahfdp8vvh
2013-11-08 11:59:21 +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 dab99d29d6 [CLEAN] payment_acquirer: module cleaning
Remove now unnecessary controllers, data and static folders. Moved credit card logos to ogone.

bzr revid: tde@openerp.com-20131108095654-jd6ybw6hkame2ayu
2013-11-08 10:56:54 +01:00
Thibault Delavallée 553870b59e [FIX] payment_acquirer: ogone: fixed import issue due to file move
bzr revid: tde@openerp.com-20131108094348-5umaqjzws0fpyuky
2013-11-08 10:43:48 +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