Commit Graph

12 Commits

Author SHA1 Message Date
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 ad2bdf6d94 [IMP] payment_acquirer_paypal: added fees computation on paypal acquirer.
paypal acquirer model: added paypal_fee_active and paypal_fee_* fields: fix and variable
fees, for domestic and international transactions.

updated views accordingly + cleaned paypal form view.

updated tests

updated form, adding handling input in the paypal button that is the input controlling
the fees in the tx process.

When creating a paypal tx, it dynamically computes fees.

bzr revid: tde@openerp.com-20131128161707-ignhrlphts47wk72
2013-11-28 17:17:07 +01:00
Thibault Delavallée abb4fdc647 [FIX] payment_acquirer_paypal: fixed return url management in DPN controller
bzr revid: tde@openerp.com-20131127160218-v4qkzcike1rm8g6b
2013-11-27 17:02:18 +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 b6b0932587 [IMP] payment_acquirer_paypal
- removed paypal_use_dpn field, not necessary, and updated views accordingly
- added first steps for server2server implementation (username and password,
method to get access token, first steps towards creating / updating payments
using s2s)
- updated form button
- fixed first name / last name that were incorrectly computed

bzr revid: tde@openerp.com-20131122115054-t6eejjvvcooz4cgt
2013-11-22 12:50:54 +01:00
Thibault Delavallée 882f398666 [FIX] payment_acquirer_paypal: fixed paypal in shop
- added paypal_get_form_action_url, used when re-routing form data
- added validation on dpn controller

bzr revid: tde@openerp.com-20131118130208-6k8pklb2638ccogr
2013-11-18 14:02:08 +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 f5a6f12ead [IMP] payment_acquirer_paypal: improved urls in rendered button, now using urljoin; improve dbutton; removed dead method; slightly improved controllers
bzr revid: tde@openerp.com-20131115133133-qhij4k0c48k96mfq
2013-11-15 14:31:33 +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