Completed
Push — master ( 3e6656...a43425 )
by Andrii
10s
created

PurchaseResponse::getRedirectMethod()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
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