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
55792411
Commit
55792411
authored
Feb 16, 2016
by
rikterbeek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
code optimalizations
parent
73d9097d
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
6 deletions
+9
-6
Controller/Process/Json.php
Controller/Process/Json.php
+1
-0
Controller/Process/Result.php
Controller/Process/Result.php
+1
-1
Model/AdyenHppConfigProvider.php
Model/AdyenHppConfigProvider.php
+2
-0
Model/Cron.php
Model/Cron.php
+5
-5
No files found.
Controller/Process/Json.php
View file @
55792411
...
...
@@ -189,6 +189,7 @@ class Json extends \Magento\Framework\App\Action\Action
}
else
{
return
"401"
;
}
return
true
;
}
...
...
Controller/Process/Result.php
View file @
55792411
...
...
@@ -147,7 +147,7 @@ class Result extends \Magento\Framework\App\Action\Action
'adyen_response'
=>
$response
]);
if
(
isset
(
$response
[
'handled'
]))
{
return
;
return
$response
[
'handled_response'
]
;
}
// set StoreId for retrieving debug log setting
...
...
Model/AdyenHppConfigProvider.php
View file @
55792411
...
...
@@ -277,6 +277,8 @@ class AdyenHppConfigProvider implements ConfigProviderInterface
if
(
$defaultCountry
)
{
return
$defaultCountry
;
}
return
""
;
}
/**
...
...
Model/Cron.php
View file @
55792411
...
...
@@ -544,7 +544,7 @@ class Cron
case
Notification
::
PENDING
:
if
(
$this
->
_getConfigData
(
'send_email_bank_sepa_on_pending'
,
'adyen_abstract'
,
$this
->
_order
->
getStoreId
()))
{
// Check if payment is banktransfer or sepa if true then send out order confirmation email
$isBankTransfer
=
$this
->
_isBankTransfer
(
$this
->
_paymentMethod
);
$isBankTransfer
=
$this
->
_isBankTransfer
();
if
(
$isBankTransfer
||
$this
->
_paymentMethod
==
'sepadirectdebit'
)
{
// $this->_order->sendNewOrderEmail(); // send order email
$this
->
_orderSender
->
send
(
$this
->
_order
);
...
...
@@ -581,7 +581,7 @@ class Cron
// $this->_uncancelOrder($this->_order);
// FOR POS authorize the payment on the CAPTURE notification
$this
->
_authorizePayment
(
$this
->
_order
,
$this
->
_paymentMethod
);
$this
->
_authorizePayment
();
}
break
;
case
Notification
::
CAPTURE_FAILED
:
...
...
@@ -603,7 +603,7 @@ class Cron
$this
->
_debugData
[
'_processNotification info'
]
=
'Order is already cancelled or holded so do nothing'
;
}
else
if
(
$this
->
_order
->
canCancel
()
||
$this
->
_order
->
canHold
())
{
$this
->
_debugData
[
'_processNotification info'
]
=
'try to cancel the order'
;
$this
->
_holdCancelOrder
(
$this
->
_order
,
true
);
$this
->
_holdCancelOrder
(
true
);
}
else
{
$this
->
_debugData
[
'_processNotification info'
]
=
'try to refund the order'
;
// refund
...
...
@@ -1107,7 +1107,7 @@ class Cron
// create invoice for the capture notification if you are on manual capture
if
(
$createInvoice
==
true
&&
$amount
==
$orderAmount
)
{
$this
->
_debugData
[
'_setPaymentAuthorized amount'
]
=
'amount notification:'
.
$amount
.
' amount order:'
.
$orderAmount
;
$this
->
_createInvoice
(
$this
->
_order
);
$this
->
_createInvoice
();
}
// if you have capture on shipment enabled don't set update the status of the payment
...
...
@@ -1126,7 +1126,7 @@ class Cron
}
// check for boleto if payment is totally paid
if
(
$this
->
_paymentMethodCode
(
$this
->
_order
)
==
"adyen_boleto"
)
{
if
(
$this
->
_paymentMethodCode
()
==
"adyen_boleto"
)
{
// check if paid amount is the same as orginal amount
$orginalAmount
=
$this
->
_boletoOriginalAmount
;
...
...
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