diff options
| author | Rémi Rahir <rar@odoo.com> | 2017-10-13 14:22:48 +0200 |
|---|---|---|
| committer | Rémi Rahir <rar@odoo.com> | 2017-10-13 15:09:20 +0200 |
| commit | eba119b38f8564acb1e5ad00e8fa2d33744f6516 (patch) | |
| tree | d8ef664b824bfb7fbfd6ef6b7a4b64f1ff3ec57d /addons/iap/models | |
| parent | 6df0bf2a6762e70d05b587aef46d4f632ba84756 (diff) | |
[FIX] iap: typo
typo missed during merge. We rename end_point to endpoint as it is the correct denomination.
Diffstat (limited to 'addons/iap/models')
| -rw-r--r-- | addons/iap/models/iap.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/addons/iap/models/iap.py b/addons/iap/models/iap.py index d688a95c702..659ea1974c5 100644 --- a/addons/iap/models/iap.py +++ b/addons/iap/models/iap.py @@ -81,7 +81,7 @@ def charge(env, key, account_token, credit, description=None, credit_template=No :param int credit: cost of the body's operation :param str description: """ - end_point = get_endpoint(env) + endpoint = get_endpoint(env) params = { 'account_token': account_token, 'credit': credit, @@ -103,14 +103,14 @@ def charge(env, key, account_token, credit, description=None, credit_template=No 'token': transaction_token, 'key': key, } - r = jsonrpc(end_point + '/iap/1/cancel', params=params) + r = jsonrpc(endpoint + '/iap/1/cancel', params=params) raise e else: params = { 'token': transaction_token, 'key': key, } - r = jsonrpc(end_point + '/iap/1/capture', params=params) # noqa + r = jsonrpc(endpoint + '/iap/1/capture', params=params) # noqa #---------------------------------------------------------- |
