Odoo18-Base/addons/payment_stripe/views/payment_templates.xml
2025-03-10 11:12:23 +07:00

29 lines
928 B
XML

<?xml version="1.0" encoding="utf-8"?>
<odoo>
<template id="checkout" inherit_id="payment.checkout">
<xpath expr="." position="inside">
<t t-call="payment_stripe.sdk_assets"/>
</xpath>
</template>
<template id="manage" inherit_id="payment.manage">
<xpath expr="." position="inside">
<t t-call="payment_stripe.sdk_assets"/>
</xpath>
</template>
<template id="express_checkout" inherit_id="payment.express_checkout">
<xpath expr="." position="inside">
<t t-call="payment_stripe.sdk_assets"/>
</xpath>
</template>
<template id="sdk_assets">
<!-- As the following link does not end with '.js', it's not loaded when
placed in __manifest__.py. The following declaration fix this problem -->
<script type="text/javascript" src="https://js.stripe.com/v3/"></script>
</template>
</odoo>