Skip to content

Instantly share code, notes, and snippets.

@vladdedita
Created March 1, 2021 19:15
Show Gist options
  • Select an option

  • Save vladdedita/c6fa891bfbb3f29cac2d2fcf5e4fd52c to your computer and use it in GitHub Desktop.

Select an option

Save vladdedita/c6fa891bfbb3f29cac2d2fcf5e4fd52c to your computer and use it in GitHub Desktop.
<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>
@umar4sap

umar4sap commented Mar 2, 2021

Copy link
Copy Markdown

please add scope(component) of cardType and styles.paymentCard

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment