From eba119b38f8564acb1e5ad00e8fa2d33744f6516 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Rahir?= Date: Fri, 13 Oct 2017 14:22:48 +0200 Subject: [PATCH] [FIX] iap: typo typo missed during merge. We rename end_point to endpoint as it is the correct denomination. --- addons/iap/models/iap.py | 6 +++--- 1 file 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 #----------------------------------------------------------