diff options
| author | Victor Feyens <vfe@odoo.com> | 2019-07-18 13:56:34 +0000 |
|---|---|---|
| committer | Victor Feyens <vfe@odoo.com> | 2019-08-12 08:45:50 +0000 |
| commit | f0e059e6010605b5cce2a3055ed3aaf7730534fa (patch) | |
| tree | a90dce7fae7b1bb6f04cd48abcae06ff74b36f71 /addons/payment_alipay/controllers/main.py | |
| parent | 611fde6c8828d7d89b8c7f90b60484c58debcf73 (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.py | 2 |
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) |
