Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
Adyen Magento2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Shared Libs
Adyen Magento2
Commits
fab11f8f
Commit
fab11f8f
authored
Oct 25, 2019
by
Alessio Zampatti
Committed by
cyattilakiss
Oct 25, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Refactor, typos (#556)
* Refactor, typos * remove duplicate case "Received"
parent
c1f27550
Changes
12
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
34 additions
and
36 deletions
+34
-36
.github/ISSUE_TEMPLATE.md
.github/ISSUE_TEMPLATE.md
+1
-1
Api/Data/InvoiceInterface.php
Api/Data/InvoiceInterface.php
+2
-2
Api/Data/NotificationInterface.php
Api/Data/NotificationInterface.php
+14
-14
Api/Data/OrderPaymentInterface.php
Api/Data/OrderPaymentInterface.php
+2
-2
Block/Adminhtml/System/Config/Field/Installments.php
Block/Adminhtml/System/Config/Field/Installments.php
+3
-3
Block/Adminhtml/System/Config/Field/InstallmentsPosCloud.php
Block/Adminhtml/System/Config/Field/InstallmentsPosCloud.php
+3
-3
Block/Form/Oneclick.php
Block/Form/Oneclick.php
+1
-1
Block/Info/Cc.php
Block/Info/Cc.php
+2
-1
Block/Info/Hpp.php
Block/Info/Hpp.php
+1
-1
Controller/Process/Result.php
Controller/Process/Result.php
+1
-1
Gateway/Validator/CheckoutResponseValidator.php
Gateway/Validator/CheckoutResponseValidator.php
+0
-3
Model/Notification.php
Model/Notification.php
+4
-4
No files found.
.github/ISSUE_TEMPLATE.md
View file @
fab11f8f
...
...
@@ -2,6 +2,6 @@
**Plugin version**
: x.y.z
**Description**
<!--
-
please provide
description of the issue. In case of bug report, please provide the necessary steps to reproduce.
-
Please provide a
description of the issue. In case of bug report, please provide the necessary steps to reproduce.
-
For merchant specific requests, please use https://support.adyen.com
-->
\ No newline at end of file
Api/Data/InvoiceInterface.php
View file @
fab11f8f
...
...
@@ -47,8 +47,8 @@ interface InvoiceInterface
*/
const
ACQUIRER_REFERENCE
=
'acquirer_reference'
;
/*
* Invoice ID.
*/
* Invoice ID.
*/
const
INVOICE_ID
=
'invoice_id'
;
/**
...
...
Api/Data/NotificationInterface.php
View file @
fab11f8f
...
...
@@ -25,10 +25,10 @@ namespace Adyen\Payment\Api\Data;
interface
NotificationInterface
{
/**#@+
/**
* Constants for keys of data array. Identical to the name of the getter in snake case.
*/
/*
* Entity ID.
*/
...
...
@@ -66,15 +66,15 @@ interface NotificationInterface
*/
const
AMOUNT_CURRENCY
=
'amount_currency'
;
/*
* r
eason
*/
* R
eason
*/
const
REASON
=
'reason'
;
/*
* Live
*/
const
LIVE
=
'live'
;
/*
*
Liv
e
*
Don
e
*/
const
DONE
=
'done'
;
/*
...
...
@@ -109,7 +109,7 @@ interface NotificationInterface
/**
* Gets the Pspreference for the notification.
*
* @return
int
|null Pspreference.
* @return
string
|null Pspreference.
*/
public
function
getPspreference
();
...
...
@@ -133,14 +133,14 @@ interface NotificationInterface
/**
* Gets the OriginalReference for the notification.
*
* @return
int
|null OriginalReference.
* @return
string
|null OriginalReference.
*/
public
function
getOriginalReference
();
/**
* Gets the Merchantreference for the notification.
*
* @return
int
|null MerchantReference.
* @return
string
|null MerchantReference.
*/
public
function
getMerchantReference
();
...
...
@@ -155,7 +155,7 @@ interface NotificationInterface
/**
* Gets the Eventcode for the notification.
*
* @return
int
|null Eventcode.
* @return
string
|null Eventcode.
*/
public
function
getEventCode
();
...
...
@@ -172,7 +172,7 @@ interface NotificationInterface
*
* @return int|null Success.
*/
public
function
getSucess
();
public
function
getSuc
c
ess
();
/**
* Sets Success.
...
...
@@ -185,7 +185,7 @@ interface NotificationInterface
/**
* Gets the Paymentmethod for the notification.
*
* @return
int
|null PaymentMethod.
* @return
string
|null PaymentMethod.
*/
public
function
getPaymentMethod
();
...
...
@@ -213,11 +213,11 @@ interface NotificationInterface
public
function
setAmountValue
(
$amountValue
);
/**
* Gets the Amount
Value
for the notification.
* Gets the Amount
Currency
for the notification.
*
* @return
int|null AmountValue
.
* @return
string|null AmountCurrency
.
*/
public
function
getAmountCurency
();
public
function
getAmountCur
r
ency
();
/**
* Sets AmountCurrency.
...
...
Api/Data/OrderPaymentInterface.php
View file @
fab11f8f
...
...
@@ -25,10 +25,10 @@ namespace Adyen\Payment\Api\Data;
interface
OrderPaymentInterface
{
/**#@+
/**
* Constants for keys of data array. Identical to the name of the getter in snake case.
*/
/*
* Entity ID.
*/
...
...
Block/Adminhtml/System/Config/Field/Installments.php
View file @
fab11f8f
...
...
@@ -112,11 +112,11 @@ class Installments extends \Magento\Config\Block\System\Config\Form\Field\FieldA
*/
protected
function
_prepareArrayRow
(
\Magento\Framework\DataObject
$row
)
{
$install
l
ments
=
$row
->
getInstallments
();
$installments
=
$row
->
getInstallments
();
$options
=
[];
if
(
$install
l
ments
)
{
$options
[
'option_'
.
$this
->
getNumberOfInstallmentsRenderer
()
->
calcOptionHash
(
$install
l
ments
)]
if
(
$installments
)
{
$options
[
'option_'
.
$this
->
getNumberOfInstallmentsRenderer
()
->
calcOptionHash
(
$installments
)]
=
'selected="selected"'
;
$ccTypes
=
$row
->
getCcTypes
();
...
...
Block/Adminhtml/System/Config/Field/InstallmentsPosCloud.php
View file @
fab11f8f
...
...
@@ -82,11 +82,11 @@ class InstallmentsPosCloud extends \Magento\Config\Block\System\Config\Form\Fiel
*/
protected
function
_prepareArrayRow
(
\Magento\Framework\DataObject
$row
)
{
$install
l
ments
=
$row
->
getInstallments
();
$installments
=
$row
->
getInstallments
();
$options
=
[];
if
(
$install
l
ments
)
{
$options
[
'option_'
.
$this
->
getNumberOfInstallmentsRenderer
()
->
calcOptionHash
(
$install
l
ments
)]
if
(
$installments
)
{
$options
[
'option_'
.
$this
->
getNumberOfInstallmentsRenderer
()
->
calcOptionHash
(
$installments
)]
=
'selected="selected"'
;
}
$row
->
setData
(
'option_extra_attrs'
,
$options
);
...
...
Block/Form/Oneclick.php
View file @
fab11f8f
...
...
@@ -36,7 +36,7 @@ class Oneclick extends \Adyen\Payment\Block\Form\Cc
protected
$_sessionQuote
;
/**
*
Cc
constructor.
*
Oneclick
constructor.
*
* @param \Magento\Framework\View\Element\Template\Context $context
* @param \Magento\Payment\Model\Config $paymentConfig
...
...
Block/Info/Cc.php
View file @
fab11f8f
...
...
@@ -32,9 +32,10 @@ class Cc extends AbstractInfo
protected
$_template
=
'Adyen_Payment::info/adyen_cc.phtml'
;
/**
* Return credit car
t
type
* Return credit car
d
type
*
* @return string
* @throws \Magento\Framework\Exception\LocalizedException
*/
public
function
getCcTypeName
()
{
...
...
Block/Info/Hpp.php
View file @
fab11f8f
...
...
@@ -49,7 +49,7 @@ class Hpp extends AbstractInfo
}
/**
* Get all
m
ultibanco related data
* Get all
M
ultibanco related data
*
* @return array
* @throws \Magento\Framework\Exception\LocalizedException
...
...
Controller/Process/Result.php
View file @
fab11f8f
...
...
@@ -301,7 +301,7 @@ class Result extends \Magento\Framework\App\Action\Action
}
/**
* Authenticate using sha
1
Merchant signature
* Authenticate using sha
256
Merchant signature
*
* @param $response
* @return bool
...
...
Gateway/Validator/CheckoutResponseValidator.php
View file @
fab11f8f
...
...
@@ -94,9 +94,6 @@ class CheckoutResponseValidator extends AbstractValidator
$payment
->
setCcType
(
$ccType
);
}
$payment
->
setAdditionalInformation
(
'pspReference'
,
$response
[
'pspReference'
]);
break
;
case
"Received"
:
$payment
->
setAdditionalInformation
(
'pspReference'
,
$response
[
'pspReference'
]);
break
;
case
"PresentToShopper"
:
...
...
Model/Notification.php
View file @
fab11f8f
...
...
@@ -197,7 +197,7 @@ class Notification extends \Magento\Framework\Model\AbstractModel implements Not
*
* @return int|null Success.
*/
public
function
getSucess
()
public
function
getSuc
c
ess
()
{
return
$this
->
getData
(
self
::
SUCCESS
);
}
...
...
@@ -259,9 +259,9 @@ class Notification extends \Magento\Framework\Model\AbstractModel implements Not
/**
* Gets the AmountValue for the notification.
*
* @return
int
|null AmountValue.
* @return
string
|null AmountValue.
*/
public
function
getAmountCurency
()
public
function
getAmountCur
r
ency
()
{
return
$this
->
getData
(
self
::
AMOUNT_CURRENCY
);
}
...
...
@@ -280,7 +280,7 @@ class Notification extends \Magento\Framework\Model\AbstractModel implements Not
/**
* Gets the Reason for the notification.
*
* @return
int
|null Reason.
* @return
string
|null Reason.
*/
public
function
getReason
()
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment