Created
March 1, 2021 19:15
-
-
Save vladdedita/c6fa891bfbb3f29cac2d2fcf5e4fd52c to your computer and use it in GitHub Desktop.
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 id="stripeForm" onSubmit={handleSubmit}> | |
<div | |
style={{ margin: "2rem", display: "flex", justifyContent: "center" }} | |
> | |
<Grid.Column> | |
<Grid.Row> | |
<PaymentCard | |
className={styles.paymentCard} | |
style={{ width: "100%!important" }} | |
brand={cardType} | |
number="4111111111111111" | |
cvv="123" | |
holderName="John Doe" | |
expiration="12/22" | |
flipped={false} | |
/> | |
</Grid.Row> | |
<Grid.Row> | |
<Segment style={{ marginTop: "2rem", marginBottom: "-1rem" }}> | |
<CardElement onChange={onChangeCard} options={options} /> | |
</Segment> | |
</Grid.Row> | |
</Grid.Column> | |
</div> | |
{/* <PaymentRequestButtonElement/> */} | |
</form> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
please add scope(component) of cardType and styles.paymentCard