[FIX] iap: typo

typo missed during merge. We rename end_point to endpoint as it is the correct denomination.
This commit is contained in:
Rémi Rahir
2017-10-13 15:09:20 +02:00
parent 6df0bf2a67
commit eba119b38f
+3 -3
View File
@@ -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
#----------------------------------------------------------