2 code indent
source | link

And this is my .jsmy .js file code. defaults: { template: 'Magento_SamplePaymentGateway/payment/form', medicaidId: '', dateOfBirth: '', },

defaults: {
                template: 'Magento_SamplePaymentGateway/payment/form',
                medicaidId: '',
                dateOfBirth: '',
            },

            initObservable: function () {
                this._super()
                    .observe('medicaidId'); 
                this._super()
                    .observe('dateOfBirth');
                return this;
            },

            getCode: function() {
                return 'sample_gateway';
            },

            getData: function() {

                return {
                    'method': this.item.method,
                    "additional_data":{
                        'medicaid_id': this.medicaidId(),
                        'do_birth': this.dateOfBirth()                                              
                        }
                };

            },

And this is my .js file code. defaults: { template: 'Magento_SamplePaymentGateway/payment/form', medicaidId: '', dateOfBirth: '', },

        initObservable: function () {
            this._super()
                .observe('medicaidId'); 
            this._super()
                .observe('dateOfBirth');
            return this;
        },

        getCode: function() {
            return 'sample_gateway';
        },

        getData: function() {

            return {
                'method': this.item.method,
                "additional_data":{
                    'medicaid_id': this.medicaidId(),
                    'do_birth': this.dateOfBirth()                                              
                    }
            };

        },

And this is my .js file code.

defaults: {
                template: 'Magento_SamplePaymentGateway/payment/form',
                medicaidId: '',
                dateOfBirth: '',
            },

            initObservable: function () {
                this._super()
                    .observe('medicaidId'); 
                this._super()
                    .observe('dateOfBirth');
                return this;
            },

            getCode: function() {
                return 'sample_gateway';
            },

            getData: function() {

                return {
                    'method': this.item.method,
                    "additional_data":{
                        'medicaid_id': this.medicaidId(),
                        'do_birth': this.dateOfBirth()                                              
                        }
                };

            },
1
source | link

And this is my .js file code. defaults: { template: 'Magento_SamplePaymentGateway/payment/form', medicaidId: '', dateOfBirth: '', },

        initObservable: function () {
            this._super()
                .observe('medicaidId'); 
            this._super()
                .observe('dateOfBirth');
            return this;
        },

        getCode: function() {
            return 'sample_gateway';
        },

        getData: function() {

            return {
                'method': this.item.method,
                "additional_data":{
                    'medicaid_id': this.medicaidId(),
                    'do_birth': this.dateOfBirth()                                              
                    }
            };

        },