PurchaseResponse::isSuccessful()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 3
ccs 2
cts 2
cp 1
crap 1
rs 10
1
<?php
2
/**
3
 * Paxum driver for PHP merchant library
4
 *
5
 * @link      https://github.com/hiqdev/omnipay-paxum
6
 * @package   omnipay-paxum
7
 * @license   MIT
8
 * @copyright Copyright (c) 2015-2017, HiQDev (http://hiqdev.com/)
9
 */
10
11
namespace Omnipay\Paxum\Message;
12
13
use Omnipay\Common\Message\AbstractResponse;
14
use Omnipay\Common\Message\RedirectResponseInterface;
15
16
/**
17
 * Paxum Purchase Response.
18
 */
19
class PurchaseResponse extends AbstractResponse implements RedirectResponseInterface
20
{
21
    protected $_redirect = 'https://www.paxum.com/payment/phrame.php?action=displayProcessPaymentLogin';
22
23 1
    public function isSuccessful()
24
    {
25 1
        return false;
26
    }
27
28 1
    public function isRedirect()
29
    {
30 1
        return true;
31
    }
32
33 1
    public function getRedirectUrl()
34
    {
35 1
        return $this->_redirect;
36
    }
37
38 1
    public function getRedirectMethod()
39
    {
40 1
        return 'POST';
41
    }
42
43 1
    public function getRedirectData()
44
    {
45 1
        return $this->data;
46
    }
47
}
48