Skip to content

Commit

Permalink
Add support for token replacement
Browse files Browse the repository at this point in the history
  • Loading branch information
Manuel Huez authored and Manuel Huez committed Dec 9, 2016
1 parent ab8331a commit 2517f34
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ The package's installation is done using composer. Simply add these lines to you
``` json
{
"require": {
"ProcessOut/ProcessOut-php": "^5.0.7"
"ProcessOut/ProcessOut-php": "^5.0.8"
}
}
```
Expand Down
2 changes: 2 additions & 0 deletions src/Token.php
Original file line number Diff line number Diff line change
Expand Up @@ -352,6 +352,7 @@ public function create($customerId, $source, $options = array())

$data = array(
"metadata" => $this->getMetadata(),
"replace" => (!empty($options["replace"])) ? $options["replace"] : null,
"source" => $source
);

Expand Down Expand Up @@ -384,6 +385,7 @@ public function createFromRequest($customerId, $source, $target, $options = arra

$data = array(
"metadata" => $this->getMetadata(),
"replace" => (!empty($options["replace"])) ? $options["replace"] : null,
"source" => $source,
"target" => $target
);
Expand Down

0 comments on commit 2517f34

Please sign in to comment.