summaryrefslogtreecommitdiff
path: root/addons/payment_alipay/controllers/main.py
AgeCommit message (Collapse)Author
2019-08-12[REF] payment* : state based publishingVictor Feyens
Replace website_published and environment by a generic state on payment.acquirer Payment acquirers aren't enabled by default. When setting their state to 'enabled' or 'test', it is verified the required fields for the provider are set.
2019-07-04[FIX] *: use `auth='public'` in controllers that use `request.env`Raphael Collet
The following trick used to work, because `sudo()` was actually making an environment for the superuser to operate upon: request.env[...].sudo().method(...) It no longer works in general, since `sudo()` now makes an environment in superuser mode but with `uid=None`! It may still work by accident for operations that never use `env.uid`, but is broken in general. Using `auth='public'` fixes the problem by using the public user when no user is available. closes odoo/odoo#34297 Signed-off-by: Olivier Dony (odo) <odo@openerp.com>
2019-05-08[FIX] payment_alipay: improvement as per the current paymentNikunj Ladava
No need of return URL as '/payment/process' will handle all the cases for payment. use of _set_transaction_state as per the state of the transaction. closes - https://github.com/odoo/odoo/pull/33231
2019-05-03[ADD] payment_alipay: added new Alipay payment acquirerNikunj Ladava
This commit introduces the Alipay payment provider, a popular acquirer in the Chinese market. There are 2 possible ways to use this acquirer: - express checkout mode (only available for merchants located in CN) - standard checkout mode (availabe for foreign merchants) Note that this provider does not support server-to-server payments, tokenization or any other bells and whistles besides fees. There are no specific behaviours related to this acquirer, it behaves like most 'form based' payment acquirers with a form submission, s2s notification from the provider as well as redirect in case the s2s did not reach the server in time. closes odoo/odoo#21855 Signed-off-by: Damien Bouvy (dbo) <dbo@odoo.com>