I am working on a custom payment module,I am able to add it to a payment method view, but I am not able to add it as a payment provider.I am referencing payment_demo and payment_stripe module to understand implementation of this, but I am unable to find the solution.
The second image shows my payment module as payment method, but I cannot see in payment providers.
This is my payment_provider_data.xml view.Which I referenced form payment_stripe
<?xml version="1.0" encoding="utf-8"?>
<odoo noupdate="1">
<record id="payment_method_esewa" model="payment.provider">
<field name="code">esewa</field>
<field name="state">test</field>
<field name="is_published">True</field>
<field name="inline_form_view_id" ref="inline_form"/>
<field name="express_checkout_form_view_id" ref="express_checkout_form"/>
<field name="allow_tokenization">True</field>
<field name="allow_express_checkout">True</field>
</record>
</odoo>
