Skip to content

Commit

Permalink
Merge pull request #11 from Netimage/master
Browse files Browse the repository at this point in the history
[BUGFIX] PayDirekt: Add `purpose` parameter
  • Loading branch information
judgej authored Aug 4, 2018
2 parents 92b5df7 + c73c179 commit 55e733e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Message/CaptureRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ public function getData()
// Even though the documentation shows the purpose as optional for Direct Debit
// payment types, it actually causes a hash validation error if included.

if ($this->isDirectDebit()) {
if ($this->isDirectDebit() || $this->isPaydirekt()) {
$data['purpose'] = substr($purpose, 0, static::PURPOSE_LENGTH);
}
}
Expand Down

0 comments on commit 55e733e

Please sign in to comment.