Passa al contenuto
Odoo Menu
  • Accedi
  • Provalo gratis
  • App
    Finanze
    • Contabilità
    • Fatturazione
    • Note spese
    • Fogli di calcolo (BI)
    • Documenti
    • Firma
    Vendite
    • CRM
    • Vendite
    • Punto vendita Negozio
    • Punto vendita Ristorante
    • Abbonamenti
    • Noleggi
    Siti web
    • Configuratore sito web
    • E-commerce
    • Blog
    • Forum
    • Live chat
    • E-learning
    Supply chain
    • Magazzino
    • Produzione
    • PLM
    • Acquisti
    • Manutenzione
    • Qualità
    Risorse umane
    • Dipendenti
    • Assunzioni
    • Ferie
    • Valutazioni
    • Referral dipendenti
    • Parco veicoli
    Marketing
    • Social marketing
    • E-mail marketing
    • SMS marketing
    • Eventi
    • Marketing automation
    • Sondaggi
    Servizi
    • Progetti
    • Fogli ore
    • Assistenza sul campo
    • Helpdesk
    • Pianificazione
    • Appuntamenti
    Produttività
    • Comunicazioni
    • Approvazioni
    • IoT
    • VoIP
    • Knowledge
    • WhatsApp
    App di terze parti Odoo Studio Piattaforma cloud Odoo
  • Settori
    Retail
    • Libreria
    • Negozio di abbigliamento
    • Negozio di arredamento
    • Alimentari
    • Ferramenta
    • Negozio di giocattoli
    Cibo e ospitalità
    • Bar e pub
    • Ristorante
    • Fast food
    • Pensione
    • Grossista di bevande
    • Hotel
    Agenzia immobiliare
    • Agenzia immobiliare
    • Studio di architettura
    • Edilizia
    • Gestione immobiliare
    • Impresa di giardinaggio
    • Associazione di proprietari immobiliari
    Consulenza
    • Società di contabilità
    • Partner Odoo
    • Agenzia di marketing
    • Studio legale
    • Selezione del personale
    • Audit e certificazione
    Produzione
    • Tessile
    • Metallo
    • Arredamenti
    • Alimentare
    • Birrificio
    • Ditta di regalistica aziendale
    Benessere e sport
    • Club sportivo
    • Negozio di ottica
    • Centro fitness
    • Centro benessere
    • Farmacia
    • Parrucchiere
    Commercio
    • Tuttofare
    • Hardware e assistenza IT
    • Ditta di installazione di pannelli solari
    • Calzolaio
    • Servizi di pulizia
    • Servizi di climatizzazione
    Altro
    • Organizzazione non profit
    • Ente per la tutela ambientale
    • Agenzia di cartellonistica pubblicitaria
    • Studio fotografico
    • Punto noleggio di biciclette
    • Rivenditore di software
    Carica tutti i settori
  • Community
    Apprendimento
    • Tutorial
    • Documentazione
    • Certificazioni 
    • Formazione
    • Blog
    • Podcast
    Potenzia la tua formazione
    • Programma educativo
    • Scale Up! Business Game
    • Visita Odoo
    Ottieni il software
    • Scarica
    • Versioni a confronto
    • Note di versione
    Collabora
    • Github
    • Forum
    • Eventi
    • Traduzioni
    • Diventa nostro partner
    • Servizi per partner
    • Registra la tua società di contabilità
    Ottieni servizi
    • Trova un partner
    • Trova un contabile
    • Incontra un esperto
    • Servizi di implementazione
    • Testimonianze dei clienti
    • Supporto
    • Aggiornamenti
    GitHub Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Richiedi una demo
  • Prezzi
  • Aiuto

Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:

  • CRM
  • e-Commerce
  • Contabilità
  • Magazzino
  • PoS
  • Progetti
  • MRP
All apps
È necessario essere registrati per interagire con la community.
Tutti gli articoli Persone Badge
Etichette (Mostra tutto)
odoo accounting v14 pos v15
Sul forum
È necessario essere registrati per interagire con la community.
Tutti gli articoli Persone Badge
Etichette (Mostra tutto)
odoo accounting v14 pos v15
Sul forum
Assistenza

Where to set redirect URL of custom payment acquirer?

Iscriviti

Ricevi una notifica quando c'è un'attività per questo post

La domanda è stata contrassegnata
paymentecommerceAcquirer
5 Risposte
17684 Visualizzazioni
Avatar
Henk

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!

0
Avatar
Abbandona
Fatih Piristine

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

Henk
Autore

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!

Avatar
Henk
Autore Risposta migliore

Hi Benno,

Sorry for the belated answer. What worked for me, is to specify the url in the action attribute of the form, like so:

<?xml version="1.0"?>
<t t-name="payment.default_acquirer_button">
    <form action="[custom_payment_acquirer_url]" method="post" target="_self">
        <input type="hidden" name="reference" t-att-value="reference"/>
        <input type="hidden" name="amount" t-att-value="amount"/>
        <input type="hidden" name="currency" t-att-value="currency.name"/>
        <!-- submit -->
        <button type="submit" width="100px" t-att-class="submit_class">
            <img t-if="not submit_txt" src="/payment_transfer/static/src/img/transfer_icon.png"/>
            <span t-if="submit_txt"><t t-esc="submit_txt"/> <span class="fa fa-long-arrow-right"/></span>
        </button>
    </form>
</t>

HTH

0
Avatar
Abbandona
Avatar
Benno Fischer
Risposta migliore

Hi Henk,

I am very curious to know if you found a solution to this mystery. I have been fiddling all evening with these payment modules. All of them seem to be acting totally different from each other. Avery payment acquirer adds his own additional data to the big "payment.acquirer" table.

I will have to develop my own module, and I would greatly benefit from your experience !

0
Avatar
Abbandona
Avatar
Fatih Piristine
Risposta migliore

form hidden inputs. if you are not able to find any documentation, i suggest you to download source code from http://nightly.odoo.com/11.0/nightly/src/odoo_11.0.latest.tar.gz and look into it. paypal, authorize etc etc.

template for authorize.net

https://github.com/odoo/odoo/blob/11.0/addons/payment_authorize/views/payment_authorize_templates.xml

code below from own payment acquirer. that works for multiple banks via single api. 2 hard-coded token + 6-12 extra tokes generated depending on bank.

<template id="custom_acquirer_button">



<t t-set="banks" t-value="tx_values.get('banks')"/>

<t t-foreach="banks" t-as="bank">
<div class="checkoutfi-bank">
<form t-att-action="bank['url']" method="post">
<input type="hidden" name="tx_url" t-att-value="bank['url']" />
<input type="hidden" name="tx_name" t-att-value="bank['name']" />

<t t-foreach="bank['fields']" t-as="item">
<input type="hidden" t-att-name="item" t-att-value="item_value" />
</t>

<div>
<button type="button" class="btn btn-submit">
<div class="btn-bank">
<img class="bank-logo" t-att-src="bank['icon']" t-att-alt="bank['name']"/>
<span class="bank-name"><t t-esc="bank['name']" /></span>
</div>
</button>
</div>
</form>
</div>
</t>

</template>


online version, i don't know if you can install or not. hosting odoo on own servers.

0
Avatar
Abbandona
Ti stai godendo la conversazione? Non leggere soltanto, partecipa anche tu!

Crea un account oggi per scoprire funzionalità esclusive ed entrare a far parte della nostra fantastica community!

Registrati
Post correlati Risposte Visualizzazioni Attività
How to collect payment processing fees from customer
payment ecommerce Acquirer
Avatar
0
apr 17
5075
Import/export from multilanguage woocommerce + Swiss payment acquirements for ecommerce
payment ecommerce
Avatar
Avatar
Avatar
2
ott 23
2958
Can any one explain process to configure payment acquirer?
payment Acquirer
Avatar
Avatar
Avatar
Avatar
3
feb 24
4045
Problem with payment methods in ecommerce odoo13 Risolto
payment ecommerce
Avatar
1
feb 22
3005
E-commerce issues after checkout in Multi-company environment
payment ecommerce
Avatar
0
lug 21
3161
Community
  • Tutorial
  • Documentazione
  • Forum
Open source
  • Scarica
  • Github
  • Runbot
  • Traduzioni
Servizi
  • Hosting Odoo.sh
  • Supporto
  • Aggiornamenti
  • Sviluppi personalizzati
  • Formazione
  • Trova un contabile
  • Trova un partner
  • Diventa nostro partner
Chi siamo
  • La nostra azienda
  • Branding
  • Contattaci
  • Lavora con noi
  • Eventi
  • Podcast
  • Blog
  • Clienti
  • Note legali • Privacy
  • Sicurezza
الْعَرَبيّة Català 简体中文 繁體中文 (台灣) Čeština Dansk Nederlands English Suomi Français Deutsch हिंदी Bahasa Indonesia Italiano 日本語 한국어 (KR) Lietuvių kalba Język polski Português (BR) română русский язык Slovenský jazyk slovenščina Español (América Latina) Español ภาษาไทย Türkçe українська Tiếng Việt

Odoo è un gestionale di applicazioni aziendali open source pensato per coprire tutte le esigenze della tua azienda: CRM, Vendite, E-commerce, Magazzino, Produzione, Fatturazione elettronica, Project Management e molto altro.

Il punto di forza di Odoo è quello di offrire un ecosistema unico di app facili da usare, intuitive e completamente integrate tra loro.

Website made with

Odoo Experience on YouTube

1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.

Live support on Youtube
Watch now