- When registering a payment token, validating it using a payment of a small amount (~1.50€) followed by a refund allows ensuring
that the payment method is valid (i.e. checksumming the card number simple ensure the number is valid but not that the card exists).
This commit introduces a generic approach that must be implemented for each acquirer that has tokenization support.
This commit also introduces a generic payment token registration/usage template that can be adapted according to one's need.
- Introducing a new payment form that handles payment, deletion and adding payment method (only for server2server for the moment).
- On /my/payment_method, changed strings 'Payment Acquirers' to 'Payment Methods' which is more clear.
- Stripe can now be used to pay subscriptions.
10 lines
513 B
XML
10 lines
513 B
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<odoo>
|
|
<template id="assets_frontend" inherit_id="web.assets_frontend" name="Payment Tx Assets">
|
|
<xpath expr="." position="inside">
|
|
<script type="text/javascript" src="/payment/static/src/js/payment_transaction.js"></script>
|
|
<script type="text/javascript" src="/payment/static/src/js/payment_form.js"></script>
|
|
<link rel="stylesheet" href="/payment/static/src/less/payment_form.less"/>
|
|
</xpath>
|
|
</template>
|
|
</odoo> |