-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ADD] Added feature for payment gateway
- Loading branch information
Nikhil-Pahwa
committed
Dec 14, 2017
1 parent
5c2eea0
commit 164ce27
Showing
17 changed files
with
209 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
src/app/modules/flights/flight-detail/flight-detail.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
44 changes: 44 additions & 0 deletions
44
src/app/shared/components/payment-mode/payment-mode.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
<div class="container"> | ||
<div class="row"> | ||
<div class="paymentCont"> | ||
<div class="headingWrap"> | ||
<h3 class="headingTop text-center">{{ 'SELECT_PAYMENT_MODE' | translate:lang }}</h3> | ||
</div> | ||
<div class="paymentWrap"> | ||
<div class="btn-group paymentBtnGroup btn-group-justified" data-toggle="buttons"> | ||
<label class="btn paymentMethod active"> | ||
<div class="method visa"></div> | ||
<input type="radio" name="options" checked> | ||
</label> | ||
<label class="btn paymentMethod"> | ||
<div class="method master-card"></div> | ||
<input type="radio" name="options"> | ||
</label> | ||
<label class="btn paymentMethod"> | ||
<div class="method paytm"></div> | ||
<input type="radio" name="options"> | ||
</label> | ||
<label class="btn paymentMethod"> | ||
<div class="method paypal"></div> | ||
<input type="radio" name="options"> | ||
</label> | ||
<label class="btn paymentMethod"> | ||
<div class="method ez-cash"></div> | ||
<input type="radio" name="options"> | ||
</label> | ||
|
||
</div> | ||
</div> | ||
<div class="footerNavWrap clearfix"> | ||
<div class="btn btn-success pull-left btn-fyi" (click)="back()"> | ||
<span class="glyphicon glyphicon-chevron-left"></span> | ||
{{ 'BACK' | translate:lang }} | ||
</div> | ||
<div class="btn btn-success pull-right btn-fyi" (click)="pay()">{{ 'PAY' | translate:lang }} | ||
<span class="glyphicon glyphicon-chevron-right"></span> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
</div> | ||
</div> |
51 changes: 51 additions & 0 deletions
51
src/app/shared/components/payment-mode/payment-mode.component.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
.paymentWrap { | ||
padding: 50px; | ||
.paymentBtnGroup { | ||
max-width: 800px; | ||
margin: auto; | ||
.paymentMethod { | ||
padding: 40px; | ||
box-shadow: none; | ||
position: relative; | ||
&.active { | ||
outline: none; | ||
.method { | ||
border-color: #4cd264; | ||
outline: none; | ||
box-shadow: 0px 3px 22px 0px #7b7b7b; | ||
} | ||
} | ||
.method { | ||
position: absolute; | ||
right: 3px; | ||
top: 3px; | ||
bottom: 3px; | ||
left: 3px; | ||
background-size: contain; | ||
background-position: center; | ||
background-repeat: no-repeat; | ||
border: 2px solid transparent; | ||
transition: all 0.5s; | ||
&.visa { | ||
background-image: url("/assets/images/payment-mode/visa.png"); | ||
} | ||
&.master-card { | ||
background-image: url("/assets/images/payment-mode/master.jpg"); | ||
} | ||
&.paytm { | ||
background-image: url("/assets/images/payment-mode/paytm.png"); | ||
} | ||
&.paypal { | ||
background-image: url("/assets/images/payment-mode/paypal.png"); | ||
} | ||
&.ez-cash { | ||
background-image: url("/assets/images/payment-mode/ez-cash.png"); | ||
} | ||
&:hover { | ||
border-color: #4cd264; | ||
outline: none; | ||
} | ||
} | ||
} | ||
} | ||
} |
25 changes: 25 additions & 0 deletions
25
src/app/shared/components/payment-mode/payment-mode.component.spec.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import { async, ComponentFixture, TestBed } from '@angular/core/testing'; | ||
|
||
import { PaymentModeComponent } from './payment-mode.component'; | ||
|
||
describe('PaymentModeComponent', () => { | ||
let component: PaymentModeComponent; | ||
let fixture: ComponentFixture<PaymentModeComponent>; | ||
|
||
beforeEach(async(() => { | ||
TestBed.configureTestingModule({ | ||
declarations: [ PaymentModeComponent ] | ||
}) | ||
.compileComponents(); | ||
})); | ||
|
||
beforeEach(() => { | ||
fixture = TestBed.createComponent(PaymentModeComponent); | ||
component = fixture.componentInstance; | ||
fixture.detectChanges(); | ||
}); | ||
|
||
it('should create', () => { | ||
expect(component).toBeTruthy(); | ||
}); | ||
}); |
27 changes: 27 additions & 0 deletions
27
src/app/shared/components/payment-mode/payment-mode.component.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import { Component, OnInit } from '@angular/core'; | ||
import { Location } from '@angular/common'; | ||
import { Language } from 'angular-l10n'; | ||
|
||
@Component({ | ||
selector: 'app-payment-mode', | ||
templateUrl: './payment-mode.component.html', | ||
styleUrls: ['./payment-mode.component.scss'] | ||
}) | ||
export class PaymentModeComponent implements OnInit { | ||
|
||
@Language() lang; | ||
|
||
constructor(private location: Location) { } | ||
|
||
ngOnInit() { | ||
} | ||
|
||
back() { | ||
this.location.back(); | ||
} | ||
|
||
pay() { | ||
alert('Feature not implemented'); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,15 @@ | ||
import { NgModule } from '@angular/core'; | ||
import { TranslationModule, LocaleService, TranslationService, LocalizationModule } from 'angular-l10n'; | ||
import { HeaderComponent } from './components/'; | ||
import { PaymentModeComponent } from './components/payment-mode/payment-mode.component'; | ||
|
||
@NgModule({ | ||
declarations: [HeaderComponent], | ||
exports: [HeaderComponent] | ||
declarations: [HeaderComponent, PaymentModeComponent], | ||
exports: [HeaderComponent], | ||
imports: [ | ||
// Translation | ||
TranslationModule.forRoot(), | ||
LocalizationModule.forRoot() | ||
] | ||
}) | ||
export class SharedModule { } |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters