The Payment Element's layout is configurable to fit your checkout flow, including a vertical accordion layout. Learn more here.
const paymentElement = elements.create('payment', {
layout: {
type: 'accordion',
radios: false
}
});
Make copies, remix, change and learn how to play with this tinydemo.
Reach out to us on any of our contact channels: