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
60dafe8f
Commit
60dafe8f
authored
Mar 08, 2016
by
rikterbeek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#20 add transaction id to invoice so that online refund is possible
parent
50300519
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
0 deletions
+15
-0
Model/Method/Cc.php
Model/Method/Cc.php
+5
-0
Model/Method/Hpp.php
Model/Method/Hpp.php
+5
-0
Model/Method/Pos.php
Model/Method/Pos.php
+5
-0
No files found.
Model/Method/Cc.php
View file @
60dafe8f
...
...
@@ -339,6 +339,11 @@ class Cc extends \Magento\Payment\Model\Method\Cc
public
function
capture
(
\Magento\Payment\Model\InfoInterface
$payment
,
$amount
)
{
parent
::
capture
(
$payment
,
$amount
);
// set TransactionId so you can do an online refund
$payment
->
setTransactionId
(
1
)
->
setIsTransactionClosed
(
false
);
$this
->
_paymentRequest
->
capture
(
$payment
,
$amount
);
return
$this
;
}
...
...
Model/Method/Hpp.php
View file @
60dafe8f
...
...
@@ -380,6 +380,11 @@ class Hpp extends \Magento\Payment\Model\Method\AbstractMethod implements Gatewa
public
function
capture
(
\Magento\Payment\Model\InfoInterface
$payment
,
$amount
)
{
parent
::
capture
(
$payment
,
$amount
);
// set TransactionId so you can do an online refund
$payment
->
setTransactionId
(
1
)
->
setIsTransactionClosed
(
false
);
$this
->
_paymentRequest
->
capture
(
$payment
,
$amount
);
return
$this
;
}
...
...
Model/Method/Pos.php
View file @
60dafe8f
...
...
@@ -380,6 +380,11 @@ class Pos extends \Magento\Payment\Model\Method\AbstractMethod implements Gatewa
public
function
capture
(
\Magento\Payment\Model\InfoInterface
$payment
,
$amount
)
{
parent
::
capture
(
$payment
,
$amount
);
// set TransactionId so you can do an online refund
$payment
->
setTransactionId
(
1
)
->
setIsTransactionClosed
(
false
);
$this
->
_paymentRequest
->
capture
(
$payment
,
$amount
);
return
$this
;
}
...
...
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