Completed
Push — master ( 342d7b...50fff4 )
by Florian
13s
created

alipay-method.js ➔ define   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 13

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
dl 0
loc 13
rs 9.4285
c 1
b 0
f 0
cc 1
nc 1
nop 1

1 Function

Rating   Name   Duplication   Size   Complexity  
A alipay-method.js ➔ ... ➔ Component.extend.getInstructions 0 3 1
1
/**
2
 * PAYONE Magento 2 Connector is free software: you can redistribute it and/or modify
3
 * it under the terms of the GNU Lesser General Public License as published by
4
 * the Free Software Foundation, either version 3 of the License, or
5
 * (at your option) any later version.
6
 *
7
 * PAYONE Magento 2 Connector is distributed in the hope that it will be useful,
8
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
9
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
10
 * GNU Lesser General Public License for more details.
11
 *
12
 * You should have received a copy of the GNU Lesser General Public License
13
 * along with PAYONE Magento 2 Connector. If not, see <http://www.gnu.org/licenses/>.
14
 *
15
 * PHP version 5
16
 *
17
 * @category  Payone
18
 * @package   Payone_Magento2_Plugin
19
 * @author    FATCHIP GmbH <[email protected]>
20
 * @copyright 2003 - 2017 Payone GmbH
21
 * @license   <http://www.gnu.org/licenses/> GNU Lesser General Public License
22
 * @link      http://www.payone.de
23
 */
24
define(
25
    [
26
        'Payone_Core/js/view/payment/method-renderer/base'
27
    ],
28
    function (Component) {
29
        'use strict';
30
        return Component.extend({
31
            defaults: {
32
                template: 'Payone_Core/payment/alipay'
33
            },
34
35
            /** Returns payment method instructions */
36
            getInstructions: function () {
37
                return window.checkoutConfig.payment.instructions[this.item.method];
38
            }
39
        });
40
    }
41
);
42