Skip to content

Commit d6f70ff

Browse files
Manuel HuezManuel Huez
authored andcommitted
Add support for token replacement
1 parent 0f87c55 commit d6f70ff

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

processout/token.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,7 @@ def create(self, customerId, source, options = {}):
204204
path = "/customers/" + quote_plus(customerId) + "/tokens"
205205
data = {
206206
'metadata': self.metadata,
207+
'replace': options.get("replace"),
207208
'source': source
208209
}
209210

@@ -233,6 +234,7 @@ def createFromRequest(self, customerId, source, target, options = {}):
233234
path = "/customers/" + quote_plus(customerId) + "/tokens"
234235
data = {
235236
'metadata': self.metadata,
237+
'replace': options.get("replace"),
236238
'source': source,
237239
'target': target
238240
}

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@
33
setup(
44
name = 'processout',
55
packages = ['processout', 'processout.errors', 'processout.networking'],
6-
version = '5.0.7',
6+
version = '5.0.8',
77
description = 'ProcessOut API bindings.',
88
author = 'ProcessOut',
99
author_email = '[email protected]',
1010
url = 'https://github.com/processout/processout-python',
11-
download_url = 'https://github.com/processout/processout-python/tarball/5.0.7',
11+
download_url = 'https://github.com/processout/processout-python/tarball/5.0.8',
1212
keywords = ['ProcessOut', 'api', 'bindings'],
1313
classifiers = [],
1414
)

0 commit comments

Comments
 (0)