File tree Expand file tree Collapse file tree 3 files changed +20
-4
lines changed Expand file tree Collapse file tree 3 files changed +20
-4
lines changed Original file line number Diff line number Diff line change 54
54
display : none ;
55
55
}
56
56
}
57
+ }
58
+
59
+ .hidden {
60
+ display : none ;
57
61
}
Original file line number Diff line number Diff line change @@ -34,17 +34,29 @@ define(function(require) {
34
34
* {@inheritdoc }
35
35
*/
36
36
initialize : function ( options ) {
37
+ this . handleIdealPayment ( options ) ;
37
38
this . options = _ . extend ( { } , this . options , options ) ;
38
39
this . $el = this . options . _sourceElement ;
39
40
40
41
mediator . on ( 'checkout:payment:before-transit' , this . beforeTransit , this ) ;
41
42
} ,
42
43
44
+ handleIdealPayment : function ( options ) {
45
+ const paymentMethod = options . paymentMethod ;
46
+ const sourceElement = options . _sourceElement ;
47
+
48
+ if ( paymentMethod . includes ( "ideal" ) ) {
49
+ if ( sourceElement . length > 0 && sourceElement [ 0 ] ) {
50
+ const issuerList = sourceElement [ 0 ] ;
51
+ issuerList . classList . add ( 'hidden' ) ;
52
+ }
53
+ }
54
+ } ,
55
+
43
56
getSelectedIssuer : function ( ) {
44
57
let issuerListContainer = document . querySelector ( '#' + this . options . paymentMethod + '-issuer-list' ) ;
45
-
46
- if ( ! issuerListContainer ) {
47
- return null ;
58
+ if ( ! issuerListContainer || this . options . paymentMethod . includes ( "ideal" ) ) {
59
+ return '' ;
48
60
}
49
61
50
62
let select = issuerListContainer . querySelector ( 'select' ) ;
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " mollie/orocommerce" ,
3
- "version" : " 5.1 .0" ,
3
+ "version" : " 5.2 .0" ,
4
4
"type" : " symfony-bundle" ,
5
5
"description" : " Mollie Payment Module for OroCommerce" ,
6
6
"keywords" : [
You can’t perform that action at this time.
0 commit comments