{
+ if ( e.key === 'Enter' || e.key === ' ' ) {
+ e.preventDefault();
+ togglePopover();
+ }
+ },
+ role: 'button',
+ tabIndex: 0,
+ 'aria-expanded': popoverOpen,
+ 'aria-controls': 'payment-methods-popover',
+ } ) }
+ data-testid="payment-methods-logos"
+ >
+ { paymentMethods
+ .slice( 0, maxShownElements )
+ .map( ( pm ) => (
+
+ ) ) }
+ { shouldHavePopover && (
+
+ + { paymentMethods.length - maxShownElements }
+
+ ) }
+