Skip to content

Commit

Permalink
Merge pull request #4 from calibr/remove-fail-validation
Browse files Browse the repository at this point in the history
Remove validation on FailURL, because there is nothing to check.
  • Loading branch information
jhaoda committed Apr 10, 2015
2 parents c8aeffd + 8cd2dbb commit f1539de
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 14 deletions.
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,14 +54,13 @@ if ($payment->validateResult($_GET) {
...
```

Check payment on Success or Fail page:
Check payment on Success page:
```php
...
$payment = new \Idma\Robokassa\Payment(
'john_doe', 'password1', 'password2', true
);

// if ($payment->validateFail($_GET) {
if ($payment->validateSuccess($_GET) {
$order = Orders::find($payment->getInvoiceId());

Expand Down
12 changes: 0 additions & 12 deletions src/Payment.php
Original file line number Diff line number Diff line change
Expand Up @@ -137,18 +137,6 @@ public function validateSuccess($data)
return $this->validate($data, 'payment');
}

/**
* Validates on FailURL.
*
* @param string $data query data
*
* @return bool
*/
public function validateFail($data)
{
return $this->validate($data, 'payment');
}

/**
* Validates the Robokassa query.
*
Expand Down

0 comments on commit f1539de

Please sign in to comment.