{"en_US": "<t name=\"Payment Manage\" t-name=\"payment.manage\">\n        <!-- Variables description:\n            - 'providers' - The payment providers supporting tokenization\n            - 'tokens' - The set of payment tokens of the current partner\n            - 'default_token_id' - The id of the token that should be pre-selected. Optional\n            - 'reference_prefix' - The custom prefix to compute the full transaction reference\n            - 'partner_id' - The id of the partner managing the tokens\n            - 'access_token' - The access token used to authenticate the partner.\n            - 'transaction_route' - The route used to create a validation transaction\n            - 'assign_token_route' - The route to call to assign a token to a record. If set, it\n                                     enables the token assignation mechanisms: creation of a new\n                                     token through a refunded transaction and assignation of an\n                                     existing token\n            - 'landing_route' - The route the user is redirected to at then end of the flow\n            - 'footer_template_id' - The template id for the submit button. Optional\n        -->\n        <form name=\"o_payment_manage\" class=\"o_payment_form mt-3 clearfix\" t-att-data-reference-prefix=\"reference_prefix\" t-att-data-partner-id=\"partner_id\" t-att-data-access-token=\"access_token\" t-att-data-transaction-route=\"transaction_route\" t-att-data-assign-token-route=\"assign_token_route\" t-att-data-landing-route=\"landing_route\" t-att-data-allow-token-selection=\"bool(assign_token_route)\">\n            <t t-set=\"provider_count\" t-value=\"len(providers) if providers else 0\"/>\n            <t t-set=\"token_count\" t-value=\"len(tokens) if tokens else 0\"/>\n            <t t-set=\"no_selectable_token\" t-value=\"token_count == 0 or not assign_token_route\"/>\n            <t t-set=\"default_payment_option_id\" t-value=\"default_token_id if default_token_id and token_count &gt; 0                         else providers[0].id if provider_count == 1 and no_selectable_token                         else None\"/>\n            <t t-set=\"footer_template_id\" t-value=\"footer_template_id or 'payment.footer'\"/>\n            <div class=\"card\">\n                <!-- === Providers === -->\n                <t t-foreach=\"providers\" t-as=\"provider\">\n                    <div name=\"o_payment_option_card\" class=\"card-body o_payment_option_card\">\n                        <label>\n                            <!-- === Radio button === -->\n                            <!-- Only shown if linked to the only payment option -->\n                            <input name=\"o_payment_radio\" type=\"radio\" t-att-checked=\"provider.id == default_payment_option_id\" t-att-class=\"'' if provider_count + token_count &gt; 1 else 'd-none'\" t-att-data-payment-option-id=\"provider.id\" t-att-data-provider=\"provider.code\" data-payment-option-type=\"provider\"/>\n                            <!-- === Provider name === -->\n                            <span class=\"payment_option_name\">\n                                <b t-esc=\"provider.display_as or provider.name\"/>\n                            </span>\n                            <!-- === \"Test Mode\" badge === -->\n                            <span t-if=\"provider.state == 'test'\" class=\"badge rounded-pill text-bg-warning\" style=\"margin-left:5px\">\n                                Test Mode\n                            </span>\n                            <!-- === \"Unpublished\" badge === -->\n                            <span t-if=\"not provider.is_published\" class=\"badge rounded-pill text-bg-danger\">\n                                Unpublished\n                            </span>\n                        </label>\n                        <!-- === Payment icon list === -->\n                        <t t-call=\"payment.icon_list\"/>\n                        <!-- === Help message === -->\n                        <div t-if=\"not is_html_empty(provider.pre_msg)\" t-out=\"provider.pre_msg\" class=\"text-muted ms-3\"/>\n                    </div>\n                    <!-- === Provider inline form === -->\n                    <t t-if=\"provider.sudo()._should_build_inline_form(is_validation=True)\">\n                        <div t-attf-id=\"o_payment_provider_inline_form_{{provider.id}}\" name=\"o_payment_inline_form\" class=\"card-footer d-none\">\n                            <t t-set=\"inline_form_xml_id\" t-value=\"provider.sudo().inline_form_view_id.xml_id\"/>\n                            <!-- === Inline form content (filled by provider) === -->\n                            <div t-if=\"inline_form_xml_id\" class=\"clearfix\">\n                                <t t-call=\"{{inline_form_xml_id}}\">\n                                    <t t-set=\"provider_id\" t-value=\"provider.id\"/>\n                                </t>\n                            </div>\n                        </div>\n                    </t>\n                </t>\n                <!-- === Tokens === -->\n                <t t-foreach=\"tokens\" t-as=\"token\">\n                    <div name=\"o_payment_option_card\" class=\"card-body o_payment_option_card\">\n                        <label>\n                            <!-- === Radio button === -->\n                            <!-- Only shown if 'assign_token_route' is set -->\n                            <input name=\"o_payment_radio\" type=\"radio\" t-att-checked=\"token.id == default_payment_option_id\" t-att-class=\"'' if bool(assign_token_route) else 'd-none'\" t-att-data-payment-option-id=\"token.id\" t-att-data-provider=\"token.provider_code\" data-payment-option-type=\"token\"/>\n                            <!-- === Token name === -->\n                            <span class=\"payment_option_name\" t-esc=\"token.display_name\"/>\n                            <!-- === \"V\" check mark === -->\n                            <t t-call=\"payment.verified_token_checkmark\"/>\n                            <!-- === \"Unpublished\" badge === -->\n                            <span t-if=\"not token.provider_id.is_published and token.env.user._is_internal()\" class=\"badge rounded-pill text-bg-danger ms-1\">\n                                Unpublished\n                            </span>\n                        </label>\n                        <!-- === \"Delete\" token button === -->\n                        <button name=\"o_payment_delete_token\" class=\"btn btn-primary btn-sm float-end\">\n                            <i class=\"fa fa-trash\"/> Delete\n                        </button>\n                    </div>\n                    <!-- === Token inline form === -->\n                    <div t-attf-id=\"o_payment_token_inline_form_{{token.id}}\" name=\"o_payment_inline_form\" class=\"card-footer d-none\">\n                        <t t-set=\"token_inline_form_xml_id\" t-value=\"token.sudo().provider_id.token_inline_form_view_id.xml_id\"/>\n                        <!-- === Inline form content (filled by provider) === -->\n                        <div t-if=\"token_inline_form_xml_id\" class=\"clearfix\">\n                            <t t-call=\"{{token_inline_form_xml_id}}\">\n                                <t t-set=\"token\" t-value=\"token\"/>\n                            </t>\n                        </div>\n                    </div>\n                </t>\n            </div>\n            <!-- === \"Save Payment Method\" button === -->\n            <t t-call=\"{{footer_template_id}}\">\n                <t t-set=\"label\">Save Payment Method</t>\n                <t t-set=\"icon_class\" t-value=\"'fa-plus-circle'\"/>\n            </t>\n        </form>\n    </t>", "vi_VN": "<t name=\"Payment Manage\" t-name=\"payment.manage\">\n        <!-- Variables description:\n            - 'providers' - The payment providers supporting tokenization\n            - 'tokens' - The set of payment tokens of the current partner\n            - 'default_token_id' - The id of the token that should be pre-selected. Optional\n            - 'reference_prefix' - The custom prefix to compute the full transaction reference\n            - 'partner_id' - The id of the partner managing the tokens\n            - 'access_token' - The access token used to authenticate the partner.\n            - 'transaction_route' - The route used to create a validation transaction\n            - 'assign_token_route' - The route to call to assign a token to a record. If set, it\n                                     enables the token assignation mechanisms: creation of a new\n                                     token through a refunded transaction and assignation of an\n                                     existing token\n            - 'landing_route' - The route the user is redirected to at then end of the flow\n            - 'footer_template_id' - The template id for the submit button. Optional\n        -->\n        <form name=\"o_payment_manage\" class=\"o_payment_form mt-3 clearfix\" t-att-data-reference-prefix=\"reference_prefix\" t-att-data-partner-id=\"partner_id\" t-att-data-access-token=\"access_token\" t-att-data-transaction-route=\"transaction_route\" t-att-data-assign-token-route=\"assign_token_route\" t-att-data-landing-route=\"landing_route\" t-att-data-allow-token-selection=\"bool(assign_token_route)\">\n            <t t-set=\"provider_count\" t-value=\"len(providers) if providers else 0\"/>\n            <t t-set=\"token_count\" t-value=\"len(tokens) if tokens else 0\"/>\n            <t t-set=\"no_selectable_token\" t-value=\"token_count == 0 or not assign_token_route\"/>\n            <t t-set=\"default_payment_option_id\" t-value=\"default_token_id if default_token_id and token_count &gt; 0                         else providers[0].id if provider_count == 1 and no_selectable_token                         else None\"/>\n            <t t-set=\"footer_template_id\" t-value=\"footer_template_id or 'payment.footer'\"/>\n            <div class=\"card\">\n                <!-- === Providers === -->\n                <t t-foreach=\"providers\" t-as=\"provider\">\n                    <div name=\"o_payment_option_card\" class=\"card-body o_payment_option_card\">\n                        <label>\n                            <!-- === Radio button === -->\n                            <!-- Only shown if linked to the only payment option -->\n                            <input name=\"o_payment_radio\" type=\"radio\" t-att-checked=\"provider.id == default_payment_option_id\" t-att-class=\"'' if provider_count + token_count &gt; 1 else 'd-none'\" t-att-data-payment-option-id=\"provider.id\" t-att-data-provider=\"provider.code\" data-payment-option-type=\"provider\"/>\n                            <!-- === Provider name === -->\n                            <span class=\"payment_option_name\">\n                                <b t-esc=\"provider.display_as or provider.name\"/>\n                            </span>\n                            <!-- === \"Test Mode\" badge === -->\n                            <span t-if=\"provider.state == 'test'\" class=\"badge rounded-pill text-bg-warning\" style=\"margin-left:5px\">\n                                Chế độ kiểm thử\n                            </span>\n                            <!-- === \"Unpublished\" badge === -->\n                            <span t-if=\"not provider.is_published\" class=\"badge rounded-pill text-bg-danger\">\n                                Chưa xuất bản\n                            </span>\n                        </label>\n                        <!-- === Payment icon list === -->\n                        <t t-call=\"payment.icon_list\"/>\n                        <!-- === Help message === -->\n                        <div t-if=\"not is_html_empty(provider.pre_msg)\" t-out=\"provider.pre_msg\" class=\"text-muted ms-3\"/>\n                    </div>\n                    <!-- === Provider inline form === -->\n                    <t t-if=\"provider.sudo()._should_build_inline_form(is_validation=True)\">\n                        <div t-attf-id=\"o_payment_provider_inline_form_{{provider.id}}\" name=\"o_payment_inline_form\" class=\"card-footer d-none\">\n                            <t t-set=\"inline_form_xml_id\" t-value=\"provider.sudo().inline_form_view_id.xml_id\"/>\n                            <!-- === Inline form content (filled by provider) === -->\n                            <div t-if=\"inline_form_xml_id\" class=\"clearfix\">\n                                <t t-call=\"{{inline_form_xml_id}}\">\n                                    <t t-set=\"provider_id\" t-value=\"provider.id\"/>\n                                </t>\n                            </div>\n                        </div>\n                    </t>\n                </t>\n                <!-- === Tokens === -->\n                <t t-foreach=\"tokens\" t-as=\"token\">\n                    <div name=\"o_payment_option_card\" class=\"card-body o_payment_option_card\">\n                        <label>\n                            <!-- === Radio button === -->\n                            <!-- Only shown if 'assign_token_route' is set -->\n                            <input name=\"o_payment_radio\" type=\"radio\" t-att-checked=\"token.id == default_payment_option_id\" t-att-class=\"'' if bool(assign_token_route) else 'd-none'\" t-att-data-payment-option-id=\"token.id\" t-att-data-provider=\"token.provider_code\" data-payment-option-type=\"token\"/>\n                            <!-- === Token name === -->\n                            <span class=\"payment_option_name\" t-esc=\"token.display_name\"/>\n                            <!-- === \"V\" check mark === -->\n                            <t t-call=\"payment.verified_token_checkmark\"/>\n                            <!-- === \"Unpublished\" badge === -->\n                            <span t-if=\"not token.provider_id.is_published and token.env.user._is_internal()\" class=\"badge rounded-pill text-bg-danger ms-1\">\n                                Chưa xuất bản\n                            </span>\n                        </label>\n                        <!-- === \"Delete\" token button === -->\n                        <button name=\"o_payment_delete_token\" class=\"btn btn-primary btn-sm float-end\">\n                            <i class=\"fa fa-trash\"/> Xóa\n                        </button>\n                    </div>\n                    <!-- === Token inline form === -->\n                    <div t-attf-id=\"o_payment_token_inline_form_{{token.id}}\" name=\"o_payment_inline_form\" class=\"card-footer d-none\">\n                        <t t-set=\"token_inline_form_xml_id\" t-value=\"token.sudo().provider_id.token_inline_form_view_id.xml_id\"/>\n                        <!-- === Inline form content (filled by provider) === -->\n                        <div t-if=\"token_inline_form_xml_id\" class=\"clearfix\">\n                            <t t-call=\"{{token_inline_form_xml_id}}\">\n                                <t t-set=\"token\" t-value=\"token\"/>\n                            </t>\n                        </div>\n                    </div>\n                </t>\n            </div>\n            <!-- === \"Save Payment Method\" button === -->\n            <t t-call=\"{{footer_template_id}}\">\n                <t t-set=\"label\">Lưu phương thức thanh toán</t>\n                <t t-set=\"icon_class\" t-value=\"'fa-plus-circle'\"/>\n            </t>\n        </form>\n    </t>"}