<# if( data.lang.payment_information !== '' ) { #> {{ data.lang.payment_information }} <# } #>
<# _.each( data.fields_list, function( field_information ) { #> <# if( field_information.type === "payment_method_card" && data.payment_method_handler !== 'ccard' ) return true; if( field_information.type === "payment_method_iban" && data.payment_method_handler !== 'sepa' ) return true; #> <# let field_value = typeof data.field_value_assoc !== 'undefined' && typeof data.field_value_assoc[ field_information.name ] !== 'undefined' ? data.field_value_assoc[ field_information.name ] : ''; #>
<# if( ( field_information.type === "payment_method_card" || field_information.type === "payment_method_iban" ) && field_information.name !== "card_zip_code" ) { #>
<# } else { #> required="required" <# } #> value="{{ field_value }}"/> <# } #>
<# }) #> <# /* (sc-7254) Buy Now, Pay Later: one Payment Element (scoped to BNPL types) plus a shipping Address Element, mounted where the card fields would be. The legacy card fields are already skipped above for this handler. Only rendered for the 'bnpl' method. */ #> <# if( data.payment_method_handler === 'bnpl' ) { #> <# /* NOT a "field": a field is a fixed-height single-line box whose `> .StripeElement` rule hides card inputs (opacity:0 / position:absolute / height:30px). The BNPL Payment + Address Elements are full Stripe iframes that size themselves, so they get their own full-width auto-height block. */ #>
<# } #> <# /* (sc-7254) Unified Payment Element (card→Payment Element migration, default-OFF filter). ONE full-width auto-height Stripe iframe mounted where the card fields were, the legacy card fields are already skipped above for this handler, and the element owns postal-code collection, so no separate card_zip_code field. */ #> <# if( data.payment_method_handler === 'payment_element' ) { #>
<# } #> <# if( typeof data.payment_method_disclaimer !== 'undefined' && data.payment_method_disclaimer !== '' ) { #>
{{ data.payment_method_disclaimer }}
<# } #>
<# if( typeof data.payment_gateway_warning !== 'undefined' && data.payment_gateway_warning !== '' ) { #> {{{ data.payment_gateway_warning }}} <# } #>