The react-stripe-js IbanElement offers options like supportedCountries and placeholderCountry:
<IbanElement
...
options={{
supportedCountries: ["SEPA"],
placeholderCountry: "DE",
}}
/>
but the recently published PaymentElement does not:
<PaymentElement
...
options={{
???
}}
/>
Is there a way to add these defaults to a PaymentElement whose clientSecret is configured with sepa_debit in its payment_method_types?
For Payment Element,
supportedCountriesdoes not need to be defined as Payment Element automatically determines which payment methods to display [0], based on:The
placeholderCountryis not available for customisation.[0] https://stripe.com/docs/payments/payment-element
[1] https://dashboard.stripe.com/settings/payment_methods