#Mahesh
1 messages · Page 1 of 1 (latest)
Accordion can be set in layout parameters under the options: https://stripe.com/docs/payments/customize-payment-element
but this is for web api. But the same option i'm not able to find in stripe-React library
For React, the options will be on PaymentElement not Elements. For example,
const options = {
layout: {
type: 'accordion',
defaultCollapsed: false,
radios: false,
spacedAccordionItems: false,
},
};
<PaymentElement options={options}/>
Thanks, that helped
Great! Happy to help 😄