summaryrefslogtreecommitdiffstats
path: root/eopayment/__init__.py
diff options
context:
space:
mode:
Diffstat (limited to 'eopayment/__init__.py')
-rw-r--r--eopayment/__init__.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/eopayment/__init__.py b/eopayment/__init__.py
index f2f1239..b4c6402 100644
--- a/eopayment/__init__.py
+++ b/eopayment/__init__.py
@@ -192,3 +192,11 @@ class Payment(object):
- bank_data -- the transaction dictionary received from the bank
'''
return self.backend.validate(amount, bank_data, **kwargs)
+
+ def get_parameters(self, scope='global'):
+ res = []
+ for param in self.backend.description.get('parameters', []):
+ if param.get('scope', 'global') != scope:
+ continue
+ res.append(param)
+ return res