Skip to content

Slots for credit card fields #51

Open
@bennypowers

Description

GitHub user and web developer @bhtw raises a requirement to render separate inputs a la this example. Stripe.js exposes apis to pull this off. I'd be interested to explore ideas here that add slots for inputs

<stripe-elements publishable-key="pk_test_XXXXXXXXXXX">
  <stripe-credit-card slot="credit-card"></stripe-credit-card>
  <stripe-exp-month slot="exp-month"></stripe-exp-month>
  <stripe-exp-year slot="exp-year"></stripe-exp-year>
  <stripe-cvc slot="cvc"></stripe-cvc>
</stripe-elements>

Activity

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

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions