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
30110565
Commit
30110565
authored
Mar 10, 2016
by
rikterbeek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
minor fixes and update version for new release
parent
1eb3c4f4
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
36 additions
and
46 deletions
+36
-46
composer.json
composer.json
+1
-4
etc/frontend/di.xml
etc/frontend/di.xml
+2
-1
etc/module.xml
etc/module.xml
+1
-1
view/frontend/web/js/view/payment/method-renderer/adyen-hpp-method.js
...d/web/js/view/payment/method-renderer/adyen-hpp-method.js
+32
-34
view/frontend/web/template/payment/hpp-form.html
view/frontend/web/template/payment/hpp-form.html
+0
-6
No files found.
composer.json
View file @
30110565
{
"name"
:
"adyen/module-payment"
,
"description"
:
"Official Magento2 Plugin to connect to Payment Service Provider Adyen."
,
"type"
:
"magento2-module"
,
"version"
:
"1.1.
2
"
,
"version"
:
"1.1.
3
"
,
"license"
:
[
"OSL-3.0"
,
"AFL-3.0"
...
...
etc/frontend/di.xml
View file @
30110565
...
...
@@ -22,7 +22,8 @@
* Author: Adyen <magento@adyen.com>
*/
-->
<config
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation=
"urn:magento:framework:ObjectManager/etc/config.xsd"
>
<config
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation=
"urn:magento:framework:ObjectManager/etc/config.xsd"
>
<type
name=
"Magento\Checkout\Model\CompositeConfigProvider"
>
<arguments>
<argument
name=
"configProviders"
xsi:type=
"array"
>
...
...
etc/module.xml
View file @
30110565
...
...
@@ -24,7 +24,7 @@
-->
<config
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation=
"urn:magento:framework:Module/etc/module.xsd"
>
<module
name=
"Adyen_Payment"
setup_version=
"1.1.
2
"
>
<module
name=
"Adyen_Payment"
setup_version=
"1.1.
3
"
>
<sequence>
<module
name=
"Magento_Sales"
/>
<module
name=
"Magento_Quote"
/>
...
...
view/frontend/web/js/view/payment/method-renderer/adyen-hpp-method.js
View file @
30110565
...
...
@@ -29,10 +29,9 @@ define(
'
Adyen_Payment/js/action/set-payment-method
'
,
'
Magento_Checkout/js/action/select-payment-method
'
,
'
Magento_Checkout/js/model/quote
'
,
'
Magento_Checkout/js/checkout-data
'
,
'
Magento_Checkout/js/model/full-screen-loader
'
,
'
Magento_Checkout/js/checkout-data
'
],
function
(
ko
,
$
,
Component
,
setPaymentMethodAction
,
selectPaymentMethodAction
,
quote
,
checkoutData
,
fullScreenLoader
)
{
function
(
ko
,
$
,
Component
,
setPaymentMethodAction
,
selectPaymentMethodAction
,
quote
,
checkoutData
)
{
'
use strict
'
;
var
brandCode
=
ko
.
observable
(
null
);
var
paymentMethod
=
ko
.
observable
(
null
);
...
...
@@ -51,6 +50,36 @@ define(
]);
return
this
;
},
getAdyenHppPaymentMethods
:
function
()
{
var
self
=
this
;
// convert to list so you can iterate
var
paymentList
=
_
.
map
(
window
.
checkoutConfig
.
payment
.
adyenHpp
.
paymentMethods
,
function
(
value
,
key
)
{
if
(
key
==
"
ideal
"
)
{
return
{
'
value
'
:
key
,
'
name
'
:
value
,
'
method
'
:
self
.
item
.
method
,
'
issuerIds
'
:
value
.
issuers
,
'
issuerId
'
:
ko
.
observable
(
null
),
getCode
:
function
()
{
return
self
.
item
.
method
;
}
}
}
else
{
return
{
'
value
'
:
key
,
'
name
'
:
value
,
'
method
'
:
self
.
item
.
method
,
getCode
:
function
()
{
return
self
.
item
.
method
;
}
}
}
}
);
return
paymentList
;
},
/** Redirect to adyen */
continueToAdyen
:
function
()
{
//update payment method information if additional data was changed
...
...
@@ -86,36 +115,6 @@ define(
setPaymentMethodAction
();
return
false
;
},
getAdyenHppPaymentMethods
:
function
()
{
var
self
=
this
;
// convert to list so you can iterate
var
paymentList
=
_
.
map
(
window
.
checkoutConfig
.
payment
.
adyenHpp
.
paymentMethods
,
function
(
value
,
key
)
{
if
(
key
==
"
ideal
"
)
{
return
{
'
value
'
:
key
,
'
name
'
:
value
,
'
method
'
:
self
.
item
.
method
,
'
issuerIds
'
:
value
.
issuers
,
'
issuerId
'
:
ko
.
observable
(
null
),
getCode
:
function
()
{
return
self
.
item
.
method
;
}
}
}
else
{
return
{
'
value
'
:
key
,
'
name
'
:
value
,
'
method
'
:
self
.
item
.
method
,
getCode
:
function
()
{
return
self
.
item
.
method
;
}
}
}
}
);
return
paymentList
;
},
selectPaymentMethodBrandCode
:
function
()
{
var
self
=
this
;
...
...
@@ -124,7 +123,6 @@ define(
"
method
"
:
self
.
method
,
"
po_number
"
:
null
,
"
additional_data
"
:
{
//brand_code: this.brandCode()
brand_code
:
self
.
value
,
}
};
...
...
view/frontend/web/template/payment/hpp-form.html
View file @
30110565
...
...
@@ -23,14 +23,10 @@
-->
<!-- ko ifnot: (isPaymentMethodSelectionOnAdyen())-->
<!-- ko foreach: getAdyenHppPaymentMethods() -->
<div
class=
"payment-method"
data-bind=
"css: {'_active': (value == $parent.isBrandCodeChecked())}"
>
<div
class=
"payment-method-title field choice"
>
<input
type=
"radio"
name=
"payment[method]"
class=
"radio"
...
...
@@ -38,13 +34,11 @@
<label
data-bind=
"attr: {'for': value}"
class=
"label"
>
<!-- ko if: name.icon -->
<img
data-bind=
"attr: {
'src': name.icon.url,
'width': name.icon.url.width,
'height': name.icon.url.height
}"
>
<!--/ko-->
<span
data-bind=
"text: name.title"
></span>
...
...
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