Skip to content

Instantly share code, notes, and snippets.

@enappd
Created May 12, 2019 11:11
Show Gist options
  • Save enappd/f0ce455bdfcefd81c6adda801b8fac79 to your computer and use it in GitHub Desktop.
Save enappd/f0ce455bdfcefd81c6adda801b8fac79 to your computer and use it in GitHub Desktop.
Stripe elements HTML
<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>
<ion-content>
<ion-grid text-center>
<ion-row>
<ion-col>
Use this Pay button in your PWA's payment page with the attached logic.
</ion-col>
</ion-row>
</ion-grid>
<ion-card class="welcome-card">
<ion-img src="/assets/stripe.png"></ion-img>
<ion-card-header>
<ion-card-subtitle>Get Started</ion-card-subtitle>
<ion-card-title>Stripe Sample</ion-card-title>
<ion-row>
<ion-col>Total Payment</ion-col>
<ion-col> {{currencyIcon}}{{paymentAmount}} </ion-col>
</ion-row>
</ion-card-header>
<ion-card-content>
<form action="/" method="post" id="payment-form">
<div class="form-row">
<div id="card-element"> <!-- a Stripe Element will be inserted here. --> </div>
<!-- Used to display Element errors -->
<div id="card-errors" role="alert"></div>
</div>
<ion-button type="submit" color="success" expand="full">Make Payment</ion-button>
</form>
</ion-card-content>
</ion-card>
</ion-content>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment