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
ec38adaa
Commit
ec38adaa
authored
Sep 18, 2015
by
rikterbeek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
notifications optimalizations
parent
482b60ba
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
128 additions
and
21 deletions
+128
-21
app/code/Adyen/Payment/Controller/Process/Json.php
app/code/Adyen/Payment/Controller/Process/Json.php
+2
-0
app/code/Adyen/Payment/Model/Cron.php
app/code/Adyen/Payment/Model/Cron.php
+115
-16
app/code/Adyen/Payment/Model/Method/AdyenAbstract.php
app/code/Adyen/Payment/Model/Method/AdyenAbstract.php
+1
-1
app/code/Adyen/Payment/Model/Method/Cc.php
app/code/Adyen/Payment/Model/Method/Cc.php
+5
-0
app/code/Adyen/Payment/Model/Method/Hpp.php
app/code/Adyen/Payment/Model/Method/Hpp.php
+5
-4
No files found.
app/code/Adyen/Payment/Controller/Process/Json.php
View file @
ec38adaa
...
...
@@ -49,6 +49,8 @@ class Json extends \Magento\Framework\App\Action\Action
// check duplicates
// _isDuplicate
try
{
$notificationItems
=
json_decode
(
file_get_contents
(
'php://input'
),
true
);
// $notificationItems = json_decode('{"live":"false","notificationItems":[{"NotificationRequestItem":{"additionalData":{"expiryDate":"12\/2012"," NAME1 ":"VALUE1","authCode":"1234","cardSummary":"7777","totalFraudScore":"10","hmacSignature":"yGnVWLP+UcpqjHTJbO5IUkG4ZdIk3uHCu62QAJvbbyg=","NAME2":" VALUE2 ","fraudCheck-6-ShopperIpUsage":"10"},"amount":{"currency":"EUR","value":10500},"eventCode":"AUTHORISATION","eventDate":"2015-09-11T13:53:21+02:00","merchantAccountCode":"MagentoMerchantByteShop1","merchantReference":"000000023","operations":["CANCEL","CAPTURE","REFUND"],"paymentMethod":"visa","pspReference":"test_AUTHORISATION_1","reason":"1234:7777:12\/2012","success":"true"}}]}', true);
...
...
app/code/Adyen/Payment/Model/Cron.php
View file @
ec38adaa
This diff is collapsed.
Click to expand it.
app/code/Adyen/Payment/Model/Method/AdyenAbstract.php
View file @
ec38adaa
...
...
@@ -14,7 +14,7 @@ use Magento\Payment\Model\Method\Online\GatewayInterface;
*/
class
AdyenAbstract
extends
\Magento\Payment\Model\Method\AbstractMethod
implements
GatewayInterface
{
const
METHOD_CODE
=
'adyen_
hpp
'
;
const
METHOD_CODE
=
'adyen_
abstract
'
;
/**
* @var string
...
...
app/code/Adyen/Payment/Model/Method/Cc.php
View file @
ec38adaa
...
...
@@ -93,6 +93,11 @@ class Cc extends \Magento\Payment\Model\Method\Cc
$this
->
_adyenLogger
=
$adyenLogger
;
}
protected
$_paymentMethodType
=
'api'
;
public
function
getPaymentMethodType
()
{
return
$this
->
_paymentMethodType
;
}
public
function
isActive
(
$storeId
=
null
)
{
...
...
app/code/Adyen/Payment/Model/Method/Hpp.php
View file @
ec38adaa
...
...
@@ -92,6 +92,11 @@ class Hpp extends \Magento\Payment\Model\Method\AbstractMethod implements Gatewa
$this
->
storeManager
=
$storeManager
;
}
protected
$_paymentMethodType
=
'hpp'
;
public
function
getPaymentMethodType
()
{
return
$this
->
_paymentMethodType
;
}
public
function
isAvailable
(
$quote
=
null
)
{
$this
->
_logger
->
critical
(
"HPP IS AVAILABLE!! IS TRUE"
);
...
...
@@ -120,10 +125,6 @@ class Hpp extends \Magento\Payment\Model\Method\AbstractMethod implements Gatewa
default
:
break
;
}
// magento 1.x code from our plugin
// $state = Mage_Sales_Model_Order::STATE_NEW;
// $stateObject->setState($state);
// $stateObject->setStatus($this->_getConfigData('order_status'));
}
...
...
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