summaryrefslogtreecommitdiff
path: root/addons/payment_alipay/controllers/main.py
diff options
context:
space:
mode:
authorVictor Feyens <vfe@odoo.com>2019-07-18 13:56:34 +0000
committerVictor Feyens <vfe@odoo.com>2019-08-12 08:45:50 +0000
commitf0e059e6010605b5cce2a3055ed3aaf7730534fa (patch)
treea90dce7fae7b1bb6f04cd48abcae06ff74b36f71 /addons/payment_alipay/controllers/main.py
parent611fde6c8828d7d89b8c7f90b60484c58debcf73 (diff)
[REF] payment* : state based publishing
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.
Diffstat (limited to 'addons/payment_alipay/controllers/main.py')
-rw-r--r--addons/payment_alipay/controllers/main.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/payment_alipay/controllers/main.py b/addons/payment_alipay/controllers/main.py
index 14fc05efca8..5763313b1a9 100644
--- a/addons/payment_alipay/controllers/main.py
+++ b/addons/payment_alipay/controllers/main.py
@@ -40,7 +40,7 @@ class AlipayController(http.Controller):
'partner': alipay.alipay_merchant_partner_id,
'notify_id': post['notify_id']
}
- response = requests.post(alipay._get_alipay_urls(alipay.environment), val)
+ response = requests.post(alipay.alipay_get_form_action_url(), val)
response.raise_for_status()
_logger.info('Validate alipay Notification %s' % response.text)
# After program is executed, the page must print “success” (without quote). If not, Alipay server would keep re-sending notification, until over 24 hour 22 minutes Generally, there are 8 notifications within 25 hours (Frequency: 2m,10m,15m,1h,2h,6h,15h)