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
716459b1
Commit
716459b1
authored
Aug 23, 2016
by
Rik ter Beek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix for invoice\capture creation for HPP payment
parent
b80be0e1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
2 deletions
+11
-2
Gateway/Http/Client/TransactionCapture.php
Gateway/Http/Client/TransactionCapture.php
+2
-1
Model/Cron.php
Model/Cron.php
+9
-1
No files found.
Gateway/Http/Client/TransactionCapture.php
View file @
716459b1
...
...
@@ -90,9 +90,10 @@ class TransactionCapture implements ClientInterface
try
{
$response
=
$service
->
capture
(
$request
);
}
catch
(
\Adyen\AdyenException
$e
)
{
$this
->
_adyenLogger
->
error
(
$e
);
// add this for now not in the lib yet
$response
=
null
;
}
return
$response
;
}
}
\ No newline at end of file
Model/Cron.php
View file @
716459b1
...
...
@@ -1013,6 +1013,15 @@ class Cron
$this
->
_order
->
setState
(
\Magento\Sales\Model\Order
::
STATE_NEW
);
}
$paymentObj
=
$this
->
_order
->
getPayment
();
// set pspReference as transactionId
$paymentObj
->
setCcTransId
(
$this
->
_pspReference
);
$paymentObj
->
setLastTransId
(
$this
->
_pspReference
);
// set transaction
$paymentObj
->
setTransactionId
(
$this
->
_pspReference
);
//capture mode
if
(
!
$this
->
_isAutoCapture
())
{
$this
->
_order
->
addStatusHistoryComment
(
__
(
'Capture Mode set to Manual'
));
...
...
@@ -1043,7 +1052,6 @@ class Cron
// validate if amount is total amount
$orderCurrencyCode
=
$this
->
_order
->
getOrderCurrencyCode
();
$paymentObj
=
$this
->
_order
->
getPayment
();
$amount
=
$this
->
_adyenHelper
->
originalAmount
(
$this
->
_value
,
$orderCurrencyCode
);
// add to order payment
...
...
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