Coveralls logob
Coveralls logo
  • Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

dercoder / omnipay-ecopayz / 16

11 Mar 2018 - 12:46 coverage: 77.474% (-1.6%) from 79.094%
16

Pull #3

travis-ci

9181eb84f9c35729a3bad740fb7f9d93?size=18&default=identiconweb-flow
adding missing functions for retrun url in gateway.
Pull Request #3: adding missing functions for retrun url in gateway.

0 of 6 new or added lines in 1 file covered. (0.0%)

227 of 293 relevant lines covered (77.47%)

7.87 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

71.43
/src/Omnipay/Ecopayz/Gateway.php
1
<?php
2
namespace Omnipay\Ecopayz;
3

4
use Omnipay\Common\AbstractGateway;
5

6
/**
7
 * Ecopayz Gateway
8
 *
9
 * @author Alexander Fedra <contact@dercoder.at>
10
 * @copyright 2015 DerCoder
11
 * @license http://opensource.org/licenses/mit-license.php MIT
12
 */
13
class Gateway extends AbstractGateway
14
{
15
    /**
16
     * {@inheritdoc}
17
     */
18
    public function getName()
19
    {
20
        return 'Ecopayz';
4×
21
    }
22

23
    /**
24
     * {@inheritdoc}
25
     */
26
    public function getDefaultParameters()
27
    {
28
        return array(
29
            'merchantId' => '',
116×
30
            'merchantPassword' => '',
all except 16.5 - 87×
31
            'merchantAccountNumber' => '',
all except 16.5 - 87×
32
            'testMode'  => false
33
        );
all except 16.5 - 87×
34
    }
35

36
    /**
37
     * Get the Merchant ID
38
     *
39
     * This is the merchant number and is a four digit numeric value, this is entered by EcoPayz staff at import time.
40
     * If this is known this can be entered on submission
41
     *
42
     * @return string merchant id
43
     */
44
    public function getMerchantId()
45
    {
46
        return $this->getParameter('merchantId');
4×
47
    }
48

49
    /**
50
     * Set the Merchant ID
51
     *
52
     * This is the merchant number and is a four digit numeric value, this is entered by EcoPayz staff at import time.
53
     * If this is known this can be entered on submission
54
     *
55
     * @param  string $value merchant id
56
     * @return self
57
     */
58
    public function setMerchantId($value)
59
    {
60
        return $this->setParameter('merchantId', $value);
116×
61
    }
62

63
    /**
64
     * Get the Merchant Password
65
     *
66
     * Password provided by ecoPayz.
67
     * Please note: Merchant password is different parameter than PP password.
68
     *
69
     * @return string merchant password
70
     */
71
    public function getMerchantPassword()
72
    {
73
        return $this->getParameter('merchantPassword');
4×
74
    }
75

76
    /**
77
     * Set the Merchant Password
78
     *
79
     * Password provided by ecoPayz.
80
     * Please note: Merchant password is different parameter than PP password.
81
     *
82
     * @param  string $value merchant password
83
     * @return self
84
     */
85
    public function setMerchantPassword($value)
86
    {
87
        return $this->setParameter('merchantPassword', $value);
116×
88
    }
89

90
    /**
91
     * Get the Merchant Account Number
92
     *
93
     * The merchant’s ecoPayz account number, which will be credited by the purchase transaction.
94
     * The number is provided by ecoPayz.
95
     *
96
     * @return string merchant account number
97
     */
98
    public function getMerchantAccountNumber()
99
    {
100
        return $this->getParameter('merchantAccountNumber');
4×
101
    }
102

103
    /**
104
     * Set the Merchant Account Number
105
     *
106
     * The merchant’s ecoPayz account number, which will be credited by the purchase transaction.
107
     * The number is provided by ecoPayz.
108
     *
109
     * @param  string $value merchant account number
110
     * @return self
111
     */
112
    public function setMerchantAccountNumber($value)
113
    {
114
        return $this->setParameter('merchantAccountNumber', $value);
116×
115
    }
116

117
    /**
118
     * Get the request return URL.
119
     *
120
     * @return string
121
     */
122
    public function getReturnUrl()
123
    {
NEW
124
        return $this->getParameter('returnUrl');
!
125
    }
126

127
    /**
128
     * Sets the request return URL.
129
     *
130
     * @param string $value
131
     * @return AbstractRequest Provides a fluent interface
132
     */
133
    public function setReturnUrl($value)
134
    {
NEW
135
        return $this->setParameter('returnUrl', $value);
!
136
    }
137

138
    /**
139
     * Get the request cancel URL.
140
     *
141
     * @return string
142
     */
143
    public function getCancelUrl()
144
    {
NEW
145
        return $this->getParameter('cancelUrl');
!
146
    }
147

148
    /**
149
     * Sets the request cancel URL.
150
     *
151
     * @param string $value
152
     * @return AbstractRequest Provides a fluent interface
153
     */
154
    public function setCancelUrl($value)
155
    {
NEW
156
        return $this->setParameter('cancelUrl', $value);
!
157
    }
158

159
    /**
160
     * Get the request transfer URL.
161
     *
162
     * @return string
163
     */
164
    public function getNotifyUrl()
165
    {
NEW
166
        return $this->getParameter('notifyUrl');
!
167
    }
168

169
    /**
170
     * Sets the request transfer URL.
171
     *
172
     * @param string $value
173
     * @return AbstractRequest Provides a fluent interface
174
     */
175
    public function setNotifyUrl($value)
176
    {
NEW
177
        return $this->setParameter('notifyUrl', $value);
!
178
    }
179

180
    /**
181
     * @param  array $parameters
182
     * @return \Omnipay\Ecopayz\Message\PurchaseRequest
183
     */
184
    public function purchase(array $parameters = array())
185
    {
186
        return $this->createRequest('\Omnipay\Ecopayz\Message\PurchaseRequest', $parameters);
12×
187
    }
188

189
    /**
190
     * @param  array $parameters
191
     * @return \Omnipay\Ecopayz\Message\CompletePurchaseRequest
192
     */
193
    public function completePurchase(array $parameters = array())
194
    {
195
        return $this->createRequest('\Omnipay\Ecopayz\Message\CompletePurchaseRequest', $parameters);
8×
196
    }
197

198
    /**
199
     * @param  array $parameters
200
     * @return \Omnipay\Ecopayz\Message\PayoutRequest
201
     */
202
    public function payout(array $parameters = array())
203
    {
204
        return $this->createRequest('\Omnipay\Ecopayz\Message\PayoutRequest', $parameters);
4×
205
    }
206

207
    /**
208
     * @param  array $parameters
209
     * @return \Omnipay\Ecopayz\Message\FetchTransactionRequest
210
     */
211
    public function fetchTransaction(array $parameters = array())
212
    {
213
        return $this->createRequest('\Omnipay\Ecopayz\Message\FetchTransactionRequest', $parameters);
4×
214
    }
215
}
Troubleshooting · Open an Issue · Sales · Support · ENTERPRISE · CAREERS · STATUS
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2023 Coveralls, Inc