Completed
Pull Request — master (#2)
by
unknown
14:56
created

PurchaseResponse   A

Complexity

Total Complexity 5

Size/Duplication

Total Lines 29
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 5
lcom 0
cbo 1
dl 0
loc 29
rs 10
c 0
b 0
f 0

5 Methods

Rating   Name   Duplication   Size   Complexity  
A isSuccessful() 0 4 1
A isRedirect() 0 4 1
A getRedirectUrl() 0 4 1
A getRedirectMethod() 0 4 1
A getRedirectData() 0 4 1
1
<?php
2
3
/*
4
 * RoboKassa driver for the Omnipay PHP payment processing library
5
 *
6
 * @link      https://github.com/hiqdev/omnipay-epayservice
7
 * @package   omnipay-epayservice
8
 * @license   MIT
9
 * @copyright Copyright (c) 2015-2016, HiQDev (http://hiqdev.com/)
10
 */
11
12
namespace Omnipay\RoboKassa\Message;
13
14
use Omnipay\Common\Message\AbstractResponse;
15
use Omnipay\Common\Message\RedirectResponseInterface;
16
17
/**
18
 * RoboKassa Purchase Response.
19
 */
20
class PurchaseResponse extends AbstractResponse implements RedirectResponseInterface
21
{
22
    protected $_redirect = 'https://merchant.roboxchange.com/Index.aspx';
23
24
    public function isSuccessful()
25
    {
26
        return false;
27
    }
28
29
    public function isRedirect()
30
    {
31
        return true;
32
    }
33
34
    public function getRedirectUrl()
35
    {
36
        return $this->_redirect;
37
    }
38
39
    public function getRedirectMethod()
40
    {
41
        return 'POST';
42
    }
43
44
    public function getRedirectData()
45
    {
46
        return $this->data;
47
    }
48
}
49