wobsoriano / solid-stripe

Solid components for Stripe.js and Stripe Elements.
https://solid-stripe-demo.vercel.app
MIT License
26 stars 1 forks source link

Can't set some properties on address element #6

Closed chxry closed 1 month ago

chxry commented 1 month ago

When creating an address element like this, the allowedCountries and fields properties are ignored. <Address mode="shipping" allowedCountries={["uk"]} fields={{ phone: "always" }} />

wobsoriano commented 1 month ago

Hi! Can you update to latest version? You should now be doing it like this:

import { AddressElement } from 'solid-stripe'

<AddressElement options={{ mode: 'shipping', allowedCountries: ['uk'], fields: { phone: 'always' } }} />

All props should now be in the options prop 🫡