Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
J
joshine
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
joshine
Commits
5c2acdd7
Commit
5c2acdd7
authored
Dec 06, 2022
by
lmf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更新klarna插件
parent
25b9d1ef
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
13 deletions
+3
-13
app/code/Oceanpayment/Klarna/Block/Payment/Redirect.php
+1
-11
app/code/Oceanpayment/Klarna/Model/PaymentMethod.php
+2
-2
No files found.
app/code/Oceanpayment/Klarna/Block/Payment/Redirect.php
View file @
5c2acdd7
...
@@ -68,17 +68,7 @@ class Redirect extends \Magento\Framework\View\Element\Template
...
@@ -68,17 +68,7 @@ class Redirect extends \Magento\Framework\View\Element\Template
}
}
public
function
getPayMode
(){
public
function
getPayMode
(){
return
$this
->
_paymentMethod
->
getConfigData
(
'pay_mode'
);
$parameter
=
$this
->
_paymentMethod
->
getCheckoutParameter
();
$billing_country
=
$parameter
[
'billing_country'
];
$pay_mode
=
$this
->
_paymentMethod
->
getConfigData
(
'pay_mode'
);
if
(
$pay_mode
==
'redirect'
||
in_array
(
$billing_country
,
array
(
'BE'
,
'FR'
,
'IT'
,
'ES'
,
'CH'
))){
return
'redirect'
;
}
else
{
return
'iframe'
;
}
// return $this->_paymentMethod->getConfigData('pay_mode');
}
}
...
...
app/code/Oceanpayment/Klarna/Model/PaymentMethod.php
View file @
5c2acdd7
...
@@ -155,7 +155,7 @@ class PaymentMethod extends AbstractMethod
...
@@ -155,7 +155,7 @@ class PaymentMethod extends AbstractMethod
//securecode
//securecode
$securecode
=
$validate_arr
[
'securecode'
];
$securecode
=
$validate_arr
[
'securecode'
];
//支付方式
//支付方式
//
$methods = 'Klarna';
$methods
=
'Klarna'
;
//订单号
//订单号
$order_number
=
$orderIncrementId
;
$order_number
=
$orderIncrementId
;
//返回地址
//返回地址
...
@@ -285,7 +285,7 @@ class PaymentMethod extends AbstractMethod
...
@@ -285,7 +285,7 @@ class PaymentMethod extends AbstractMethod
'noticeUrl'
=>
$noticeUrl
,
'noticeUrl'
=>
$noticeUrl
,
'order_notes'
=>
$order_notes
,
'order_notes'
=>
$order_notes
,
'itemList'
=>
$itemList
,
'itemList'
=>
$itemList
,
//
'methods'=>$methods,
'methods'
=>
$methods
,
'signValue'
=>
$signValue
,
'signValue'
=>
$signValue
,
'billing_firstName'
=>
$billing_firstName
,
'billing_firstName'
=>
$billing_firstName
,
'billing_lastName'
=>
$billing_lastName
,
'billing_lastName'
=>
$billing_lastName
,
...
...
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