Skip to content

Commit

Permalink
Merge pull request #5 from arbory/fix/omnipay-collision
Browse files Browse the repository at this point in the history
Rename method to fix collision with Omnipay internal method
  • Loading branch information
miks authored Oct 6, 2020
2 parents 18196bd + af67838 commit 74331cf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Messages/CompleteRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,15 +81,15 @@ public function createResponse(array $data)
public function sendData($data)
{
//Validate response data before we process further
$this->validate();
$this->validateResponseParameters();

// Create fake response flow
/** @var CompleteResponse $purchaseResponseObj */
$response = $this->createResponse($data);
return $response;
}

public function validate()
protected function validateResponseParameters()
{
$response = $this->getData();
if (!isset($response['VK_SERVICE']) || !in_array($response['VK_SERVICE'], ['1101', '1901'])) {
Expand Down

0 comments on commit 74331cf

Please sign in to comment.