Commit Graph

8 Commits

Author SHA1 Message Date
Thibault Delavallée 648fbb00ef [IMP] payment_acquirer_paypal: dummy data + removed import of tests
bzr revid: tde@openerp.com-20131127153619-4g8savetjkn8clap
2013-11-27 16:36:19 +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 b6836ceb5b [IMP] payment_acquirer_paypal: when receiving a pending tx from paypal, update state_message of the tx accordingly + tests
bzr revid: tde@openerp.com-20131122120418-t2nve14q6vjr7m6q
2013-11-22 13:04:18 +01:00
Thibault Delavallée 73981072d1 [TEST] payment_acquirer_paypal: cleaned and added tests
bzr revid: tde@openerp.com-20131122115135-1wd9gyusp8rhl6bj
2013-11-22 12:51:35 +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 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 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