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
import { NgModule, ErrorHandler } from '@angular/core'; | |
import { BrowserModule } from '@angular/platform-browser'; | |
import { RouteReuseStrategy } from '@angular/router'; | |
import { HttpClientModule, HttpClient } from '@angular/common/http'; | |
import { TranslateModule, TranslateLoader } from '@ngx-translate/core'; | |
import { TranslateHttpLoader } from '@ngx-translate/http-loader'; | |
import { IonicModule, IonicRouteStrategy } from '@ionic/angular'; | |
import { SplashScreen } from '@ionic-native/splash-screen/ngx'; | |
import { StatusBar } from '@ionic-native/status-bar/ngx'; |
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
import { Component } from '@angular/core'; | |
import { TranslateService } from '@ngx-translate/core'; | |
@Component({ | |
selector: 'app-tab1', | |
templateUrl: 'tab1.page.html', | |
styleUrls: ['tab1.page.scss'] | |
}) | |
export class Tab1Page { | |
//local variables |
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
<ion-header> | |
<ion-toolbar> | |
<ion-title> | |
Tab One | |
</ion-title> | |
</ion-toolbar> | |
</ion-header> | |
<ion-content> |
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
import { IonicModule } from '@ionic/angular'; | |
import { RouterModule } from '@angular/router'; | |
import { NgModule } from '@angular/core'; | |
import { CommonModule } from '@angular/common'; | |
import { FormsModule } from '@angular/forms'; | |
import { Tab1Page } from './tab1.page'; | |
import { TranslateModule, TranslateLoader} from '@ngx-translate/core'; | |
import { HttpClient } from '@angular/common/http'; | |
import { TranslateHttpLoader } from '@ngx-translate/http-loader'; |
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
import { Component } from '@angular/core'; | |
import { PayPal, PayPalPayment, PayPalConfiguration } from '@ionic-native/paypal/ngx'; | |
@Component({ | |
selector: 'app-paypal', | |
templateUrl: 'paypal.page.html', | |
styleUrls: ['paypal.page.scss'], | |
}) | |
export class PaypalPage { | |
constructor(private payPal: PayPal) { |
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
<ion-header> | |
<ion-toolbar color="primary"> | |
<ion-buttons slot="start"> | |
<ion-menu-button></ion-menu-button> | |
</ion-buttons> | |
<ion-title> | |
Paypal for App | |
</ion-title> | |
</ion-toolbar> | |
</ion-header> |
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
import { Component } from '@angular/core'; | |
@Component({ | |
selector: 'app-paypal', | |
templateUrl: 'paypal.page.html', | |
styleUrls: ['paypal.page.scss'], | |
}) | |
export class PaypalPage { | |
paymentAmount: string = '3.33'; | |
currency: string = 'USD'; |
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
/** | |
* Audrix (https://www.enappd.com/audrix) | |
* | |
* Copyright © 2018-present Enappd. All rights reserved. | |
* | |
* This source code is licensed as per the terms found in the | |
* LICENSE.md file in the root directory of this source tree. | |
*/ | |
import React, { Component } from "react"; |
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
payWithStripe() { | |
this.stripe.setPublishableKey(this.stripe_key); | |
this.cardDetails = { | |
number: '4242424242424242', | |
expMonth: 12, | |
expYear: 2020, | |
cvc: '220' | |
} |
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
<ion-header> | |
<ion-toolbar color="primary"> | |
<ion-buttons slot="start"> | |
<ion-menu-button></ion-menu-button> | |
</ion-buttons> | |
<ion-title> | |
Stripe for PWA | |
</ion-title> | |
</ion-toolbar> | |
</ion-header> |
OlderNewer