Created
October 29, 2018 10:39
-
-
Save ramanathanrv/039ef0c5c9aae02f2a6d53236ed2b52a to your computer and use it in GitHub Desktop.
Card JS 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
<form className="card-form"> | |
<FullRow style={{marginBottom: '20px'}}>Please enter your card details below. Card transaction is processed via secure gateway.</FullRow> | |
<CardIconsBanner brands={this.state.acceptedCardBrands}/> | |
<TextInput prompt="Card number" name="cc-number" value={this.state.cardNumber} | |
components={components} | |
wrapUsing={FullRow} | |
stitchUsing = {FormControl} | |
onChange={this.handleInput} stitcherClass="cardsInputinfo cardNumber" /> | |
<Block> | |
<TextInput prompt="Expiry" name="cc-exp-month" placeholder="MM" | |
onChange={this.handleInput} wrapUsing={Quarter} /> | |
<TextInput prompt=" " name="cc-exp-year" placeholder="YY" | |
onChange={this.handleInput} wrapUsing={Quarter} /> | |
<TextInput prompt="CVV" name="cc-cvv" placeholder="•••" | |
wrapUsing={Quarter} /> | |
</Block> | |
<TextInput prompt="Cardholder Name" name="cc-name" value={this.state.nameOnCard} | |
onChange={this.handleInput} wrapUsing={FullRow} /> | |
<ButtonPrimaryBig onClick={this.handleClick}> | |
<span id="payment-button-amount">Pay {this.state.currency}{this.state.amount}</span> | |
</ButtonPrimaryBig> | |
</form> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment