<?xml version="1.0" encoding="utf-8"?>
<odoo>

    <template id="inline_form">
        <t t-set="inline_form_values"
           t-value="provider_sudo._stripe_get_inline_form_values(
                        amount,
                        currency,
                        partner_id,
                        mode == 'validation',
                        payment_method_sudo=pm_sudo,
                        sale_order_id=sale_order_id,
                    )"
        />
        <div name="o_stripe_element_container"
             t-att-data-stripe-inline-form-values="inline_form_values"
        />
    </template>

    <template id="express_checkout_form">
        <div name="o_express_checkout_container"
             t-attf-id="o_stripe_express_checkout_container_{{provider_sudo.id}}"
             t-att-data-provider-id="provider_sudo.id"
             t-att-data-provider-code="provider_sudo.code"
             t-att-data-stripe-publishable-key="provider_sudo._stripe_get_publishable_key()"
             t-att-data-country-code="provider_sudo._stripe_get_country(provider_sudo.company_id.country_id.code)"
             class="w-100 mt-2"
        />
    </template>

</odoo>
