loading...

Discussion on: Any Framework, One Stripe Integration

bennypowers profile image
Benny Powers 🇮🇱🇨🇦 Author

PCI requires the inputs to be in Stripe's iframe, but I was thinking more something like

<stripe-elements>
  <form slot="billing-info">
    <input name="name"/>
    <input name="address"/>
  </form>
</stripe-elements>

or some such, so that the generated representation (token|source|paymentMethod) has that info inside
see stripe.com/docs/js/tokens_sources/... and stripe.com/docs/js/tokens_sources/...

It would be ideal if, even in a browser that doesn't support the formdata event, we could still get data from custom controls in the form.