Skip to content

Commit 624537b

Browse files
committed
Minor documentation updates
1 parent efede11 commit 624537b

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

src/Message/AbstractResponse.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ protected function decodeMerchantParameters($data)
5151
*/
5252
protected function encryptMessage($message, $key)
5353
{
54-
$iv = implode(array_map("chr", array(0, 0, 0, 0, 0, 0, 0, 0)));
54+
$iv = implode(array_map('chr', array(0, 0, 0, 0, 0, 0, 0, 0)));
5555

5656
if (function_exists('mcrypt_encrypt')) {
5757
$ciphertext = mcrypt_encrypt(MCRYPT_3DES, $key, $message, MCRYPT_MODE_CBC, $iv);

src/Message/CompletePurchaseResponse.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,15 @@ class CompletePurchaseResponse extends AbstractResponse
1717
/** @var boolean */
1818
protected $usingUpcaseParameters = false;
1919
/** @var boolean */
20-
protected $usingUpcaseResponse = false;
20+
protected $usingUpcaseResponse = false;
2121

2222
/**
2323
* Constructor
2424
*
2525
* @param RequestInterface $request the initiating request.
2626
* @param mixed $data
2727
*
28-
* @throws InvalidResponseException If order number is missing or signature does not match
28+
* @throws InvalidResponseException If merchant data or order number is missing, or signature does not match
2929
*/
3030
public function __construct(RequestInterface $request, $data)
3131
{
@@ -90,6 +90,8 @@ public function getData()
9090
/**
9191
* Helper method to get a specific merchant parameter if available.
9292
*
93+
* @param string $key The key to look up
94+
*
9395
* @return null|mixed
9496
*/
9597
protected function getKey($key)

src/Message/PurchaseRequest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,11 @@
99
*/
1010
class PurchaseRequest extends AbstractRequest
1111
{
12+
/** @var string */
1213
protected $liveEndpoint = 'https://sis.redsys.es/sis/realizarPago';
14+
/** @var string */
1315
protected $testEndpoint = 'https://sis-t.redsys.es:25443/sis/realizarPago';
16+
/** @var array */
1417
protected static $consumerLanguages = array(
1518
'es' => '001', // Spanish
1619
'en' => '002', // English

0 commit comments

Comments
 (0)