diff --git a/addons/iap/models/iap.py b/addons/iap/models/iap.py index c32746e9b1106cd989b62287633c1fbc6f601ae6..3d99aae52a8923bb30d32e9d5674b3833e5062e3 100644 --- a/addons/iap/models/iap.py +++ b/addons/iap/models/iap.py @@ -80,13 +80,14 @@ class IapTransaction(object): def __init__(self): self.credit = None -def authorize(env, key, account_token, credit, dbuuid=False, description=None, credit_template=None): +def authorize(env, key, account_token, credit, dbuuid=False, description=None, credit_template=None, ttl=4320): endpoint = get_endpoint(env) params = { 'account_token': account_token, 'credit': credit, 'key': key, 'description': description, + 'ttl': ttl } if dbuuid: params.update({'dbuuid': dbuuid})