Skip to content

Commit

Permalink
Only pass validationMode if it is a valid value
Browse files Browse the repository at this point in the history
  • Loading branch information
mglaman committed Apr 30, 2018
1 parent d880663 commit 2d91712
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/CreateCustomerProfileRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ public function setValidationMode($validationMode)
protected function attachData(RequestInterface $request)
{
$request->addDataType($this->profile);
$request->addData('validationMode', $this->validationMode);
if ($this->validationMode == 'testMode' || $this->validationMode == 'liveMode') {
$request->addData('validationMode', $this->validationMode);
}
}
}

0 comments on commit 2d91712

Please sign in to comment.