This commit enables eCommerce customers to pay with the express payment methods Apple Pay and Google Pay from the cart page. For the moment, only Stripe supports this additional feature but it was designed to make it easy to implement with a new provider. task-2754209 closes odoo/odoo#88374 Related: odoo/enterprise#29915 Related: odoo/documentation#2392 Signed-off-by: Antoine Vandevenne (anv) <anv@odoo.com>
29 lines
928 B
XML
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>
|