Skip to content

Commit 71dc353

Browse files
composer update
1 parent 185a70d commit 71dc353

File tree

503 files changed

+21223
-5128
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

503 files changed

+21223
-5128
lines changed

composer.lock

Lines changed: 178 additions & 308 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/ircmaxell/password-compat/.gitignore renamed to vendor/alfaproject/omnipay-skrill/.gitignore

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
.idea
2+
3+
build
4+
vendor
5+
6+
composer.phar
17
composer.lock
8+
29
phpunit.xml
3-
vendor

vendor/alfaproject/omnipay-skrill/src/Omnipay/Skrill/Gateway.php

Lines changed: 57 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@
66
/**
77
* Skrill Gateway
88
*
9-
* @author Joao Dias <[email protected]>
9+
* @author Joao Dias <[email protected]>
1010
* @copyright 2013-2014 Cherry Ltd.
11-
* @license http://opensource.org/licenses/mit-license.php MIT
12-
* @version 2.0.0
11+
* @license http://opensource.org/licenses/mit-license.php MIT
12+
* @version 2.0.0
1313
*/
1414
class Gateway extends AbstractGateway
1515
{
@@ -26,11 +26,11 @@ public function getName()
2626
*/
2727
public function getDefaultParameters()
2828
{
29-
return array(
30-
'email' => '',
31-
'notifyUrl' => '',
32-
'testMode' => false,
33-
);
29+
return [
30+
'email' => '',
31+
'notifyUrl' => '',
32+
'testMode' => false,
33+
];
3434
}
3535

3636
/**
@@ -47,6 +47,7 @@ public function getEmail()
4747
* Set the merchant's email address.
4848
*
4949
* @param string $value email
50+
*
5051
* @return self
5152
*/
5253
public function setEmail($value)
@@ -68,6 +69,7 @@ public function getPassword()
6869
* Set the merchant's MD5 API/MQI password.
6970
*
7071
* @param string $value password
72+
*
7173
* @return self
7274
*/
7375
public function setPassword($value)
@@ -95,53 +97,92 @@ public function getNotifyUrl()
9597
* the merchant.
9698
*
9799
* @param string $value notify url
100+
*
98101
* @return self
99102
*/
100103
public function setNotifyUrl($value)
101104
{
102105
return $this->setParameter('notifyUrl', $value);
103106
}
104107

108+
/**
109+
* Get the secret word used for signatures.
110+
*
111+
* @return string Secret word
112+
*/
113+
public function getSecretWord()
114+
{
115+
return $this->getParameter('secretWord');
116+
}
117+
118+
/**
119+
* Set the secret word used for signatures.
120+
*
121+
* @param string $value Secret word
122+
*
123+
* @return self
124+
*/
125+
public function setSecretWord($value)
126+
{
127+
return $this->setParameter('secretWord', $value);
128+
}
129+
105130
/**
106131
* Create a new charge.
107132
*
108-
* @param array $parameters request parameters
133+
* @param array $parameters request parameters
134+
*
109135
* @return Message\PaymentResponse response
110136
*/
111-
public function purchase(array $parameters = array())
137+
public function purchase(array $parameters = [])
112138
{
113139
return $this->createRequest('Omnipay\Skrill\Message\PaymentRequest', $parameters);
114140
}
115141

142+
/**
143+
* Finalises a payment (callback).
144+
*
145+
* @param array $parameters request parameters
146+
*
147+
* @return Message\PaymentResponse response
148+
*/
149+
public function completePurchase(array $parameters = [])
150+
{
151+
return $this->createRequest('Omnipay\Skrill\Message\CompletePurchaseRequest', $parameters);
152+
}
153+
116154
/**
117155
* Authorize and prepare a transfer.
118156
*
119-
* @param array $parameters request parameters
157+
* @param array $parameters request parameters
158+
*
120159
* @return Message\AuthorizeResponse response
121160
*/
122-
public function authorizeTransfer(array $parameters = array())
161+
public function authorizeTransfer(array $parameters = [])
123162
{
124163
return $this->createRequest('Omnipay\Skrill\Message\AuthorizeTransferRequest', $parameters);
125164
}
126165

127166
/**
128167
* Create a new transfer.
129168
*
130-
* @param array $parameters request parameters
169+
* @param array $parameters request parameters
170+
*
131171
* @return Message\TransferResponse response
132172
*/
133-
public function transfer(array $parameters = array())
173+
public function transfer(array $parameters = [])
134174
{
135175
return $this->createRequest('Omnipay\Skrill\Message\TransferRequest', $parameters);
136176
}
137177

138178
/**
139179
* Authorize and prepare a refund.
140180
*
141-
* @param array $parameters request parameters
181+
* @param array $parameters request parameters
182+
*
142183
* @return Message\AuthorizeResponse response
143184
*/
144-
public function authorizeRefund(array $parameters = array())
185+
public function authorizeRefund(array $parameters = [])
145186
{
146187
return $this->createRequest('Omnipay\Skrill\Message\AuthorizeRefundRequest', $parameters);
147188
}

vendor/alfaproject/omnipay-skrill/src/Omnipay/Skrill/Message/AuthorizeRefundRequest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,13 @@
1313
*/
1414
class AuthorizeRefundRequest extends AuthRequest
1515
{
16+
1617
/**
1718
* {@inheritdoc}
1819
*/
1920
protected function getEndpoint()
2021
{
21-
return 'https://www.moneybookers.com/app/refund.pl';
22+
return 'https://www.skrill.com/app/refund.pl';
2223
}
2324

2425
/**

vendor/alfaproject/omnipay-skrill/src/Omnipay/Skrill/Message/AuthorizeTransferRequest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class AuthorizeTransferRequest extends AuthRequest
1616
*/
1717
protected function getEndpoint()
1818
{
19-
return 'https://www.moneybookers.com/app/pay.pl';
19+
return 'https://www.skrill.com/app/pay.pl';
2020
}
2121

2222
/**
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
<?php
2+
namespace Omnipay\Skrill\Message;
3+
4+
use Omnipay\Common\Exception\RuntimeException;
5+
use Omnipay\Common\Message\AbstractRequest;
6+
use Symfony\Component\HttpFoundation\ParameterBag;
7+
8+
/**
9+
* Callback handler
10+
*
11+
* @package Omnipay\Skrill\Message
12+
*/
13+
class CompletePurchaseRequest extends AbstractRequest
14+
{
15+
/**
16+
* Initialize the object with parameters.
17+
*
18+
* If any unknown parameters passed, they will be ignored.
19+
*
20+
* @param array $parameters An associative array of parameters
21+
*
22+
* @return $this
23+
* @throws RuntimeException
24+
*/
25+
public function initialize(array $parameters = [])
26+
{
27+
if (null !== $this->response) {
28+
throw new RuntimeException('Request cannot be modified after it has been sent!');
29+
}
30+
31+
$this->parameters = new ParameterBag($parameters);
32+
33+
return $this;
34+
}
35+
36+
/**
37+
* Get the data for this request.
38+
*
39+
* @return array request data
40+
*/
41+
public function getData()
42+
{
43+
return $this->parameters->all();
44+
}
45+
46+
/**
47+
* @param array $data payment data to send
48+
*
49+
* @return PaymentResponse payment response
50+
*/
51+
public function sendData($data)
52+
{
53+
return $this->response = new StatusCallback($data);
54+
}
55+
}

0 commit comments

Comments
 (0)