I am trying to find out where I can set the redirect URL for a custom payment acquirer in Odoo Online.
We are using Odoo in a virtual enterprise. A virtual enterprise is an in-school business simulation.
This is what I am trying to achieve: when a customer selects the custom payment method and clicks "Pay Now" in the webshop then the customer is redirected to the payment page of a virtual bank which is part of the business simulation platform.
According to the Odoo documentation (https://www.odoo.com/documentation/user/11.0/ecommerce/shopper_experience/payment.html#how-to-use-other-acquirers-advanced) "Odoo can submit single payment requests and redirect to any payment acquirer" but it says very little about how to configure the custom payment method.
Thank you for your help!
if you have only redirection without having pre-tokens then setting your parameters should work as given in there. if not, you should sit down and write your own payment acquirer. way easier than you find it.
This template renders the acquirer button with all necessary values. It is rendered with qWeb with the following evaluation context:
tx_url: transaction URL to post the form
acquirer: payment.acquirer browse record
user: current user browse record
reference: the transaction reference number
currency: the transaction currency browse record
amount: the transaction amount, a float
partner: the buyer partner browse record, not necessarily set
partner_values: specific values about the buyer, for example coming from a shipping form
tx_values: transaction values
context: the current context dictionary
Thanks, F.P.. Where do I set the tx_url value exactly?
This is what I did as per the Odoo documentation:
1. Switched to developer mode.
2. Selected the Custom payment method.
I got stuck at step 3 "Set up the payment form (S2S Form Template) as instructed by your payment acquirer. You can start from default_acquirer_button that you can duplicate.". Please remember there is no payment acquirer we can turn to for instructions because we are using Odoo in an in-school simulation and the payment acquirer is a virtual bank that is part of the simulation platform. We as virtual bank are trying to find out what instructions we should provide to setup the Custom Payment Acquirer.
Coming back to my original question about where to set the URL of the payment page: should I edit the Form Button Template "default_acquirer_button"? Could you please point me to documentation that details how to configure this exactly. I searched high and low for this, so I would really appreciate it.
Regarding your suggesting for writing your own payment acquirer: as the schools are using Odoo Online (hosted by Odoo S.A.), how would that be installed? It was my impression that installing of custom modules and apps is not possible in Odoo Online but I would be very interested to learn how a custom payment acquirer can be installed.
Thanks!