Přejít na obsah
Odoo Menu
  • Přihlásit se
  • Vyzkoušejte zdarma
  • Aplikace
    Finance
    • Účetnictví
    • Fakturace
    • Výdaje
    • Spreadsheet (BI)
    • Dokumenty
    • Podpisy
    Prodej
    • CRM
    • Prodej
    • POS Obchod
    • POS Restaurace
    • Předplatné
    • Pronájem
    Webové stránky
    • Webové stránky
    • E-shop
    • Blog
    • Fórum
    • Živý chat
    • eLearning
    Dodavatelský řetězec
    • Sklad
    • Výroba
    • PLM
    • Nákup
    • Údržba
    • Kvalita
    Lidské zdroje
    • Zaměstnanci
    • Nábor
    • Volno
    • Hodnocení zaměstnanců
    • Doporučení
    • Vozový park
    Marketing
    • Marketing sociálních sítí
    • Emailový marketing
    • SMS Marketing
    • Události
    • Marketingová automatizace
    • Dotazníky
    Služby
    • Projekt
    • Časové výkazy
    • Práce v terénu
    • Helpdesk
    • Plánování
    • Schůzky
    Produktivita
    • Diskuze
    • Schvalování
    • IoT
    • VoIP
    • Znalosti
    • WhatsApp
    Aplikace třetích stran Odoo Studio Odoo cloudová platforma
  • Branže
    Maloobchod
    • Knihkupectví
    • Obchod s oblečením
    • Obchod s nábytkem
    • Potraviny
    • Obchod s hardwarem
    • Hračkářství
    Jídlo a pohostinství
    • Bar a Pub
    • Restaurace
    • Fast Food
    • Penzion
    • Distributor nápojů
    • Hotel
    Nemovitost
    • Realitní kancelář
    • Architektonická firma
    • Stavba
    • Správa nemovitostí
    • Zahradnictví
    • Asociace vlastníků nemovitosti
    Poradenství
    • Účetní firma
    • Odoo Partner
    • Marketingová agentura
    • Právník
    • Akvizice talentů
    • Audit a certifikace
    Výroba
    • Textile
    • Kov
    • Nábytek
    • Jídlo
    • Brewery
    • Korporátní dárky
    Zdraví a fitness
    • Sportovní klub
    • Prodejna brýli
    • Fitness Centrum
    • Wellness praktikové
    • Lékárna
    • Kadeřnictví
    Transakce
    • Údržbář
    • IT hardware a podpora
    • Systémy solární energie
    • Výrobce obuvi
    • Úklidové služby
    • Služby HVAC
    Ostatní
    • Nezisková organizace
    • Agentura pro životní prostředí
    • Pronájem billboardů
    • Fotografování
    • Leasing jízdních kol
    • Prodejce softwaru
    Browse all Industries
  • Komunita
    Edukační program
    • Tutoriály
    • Dokumentace
    • Certifikace
    • Vzdělávání
    • Blog
    • Podcast
    Podpora vzdělávání
    • Vzdělávací program
    • Scale Up! Hra na firmu
    • Navštivte Odoo
    Získat software
    • Stáhnout
    • Porovnejte edice
    • Verze
    Spolupráce
    • Github
    • Fórum
    • Události
    • Překlady
    • Stát se partnerem
    • Services for Partners
    • Registrujte svou účetní firmu
    Získat služby
    • Najít partnera
    • Najít účetní
    • Setkejte se s poradcem
    • Implementační služby
    • Zákaznické reference
    • Podpora
    • Upgrady
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Dohodnout demo
  • Ceník
  • Pomoc

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

  • CRM
  • e-Commerce
  • Účetnictví
  • Sklad
  • PoS
  • Projekty
  • MRP
All apps
You need to be registered to interact with the community.
All Posts Lidé Odznaky
Štítky (View all)
odoo accounting v14 pos v15
O tomto fóru
You need to be registered to interact with the community.
All Posts Lidé Odznaky
Štítky (View all)
odoo accounting v14 pos v15
O tomto fóru
Pomoc

Where to set redirect URL of custom payment acquirer?

Odebírat

Get notified when there's activity on this post

This question has been flagged
paymentecommerceAcquirer
5 Odpovědi
17687 Zobrazení
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
Zrušit
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
Autor

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
Autor Nejlepší odpověď

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
Zrušit
Avatar
Benno Fischer
Nejlepší odpověď

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
Zrušit
Avatar
Fatih Piristine
Nejlepší odpověď

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
Zrušit
Enjoying the discussion? Don't just read, join in!

Create an account today to enjoy exclusive features and engage with our awesome community!

Přihlásit se
Related Posts Odpovědi Zobrazení Aktivita
How to collect payment processing fees from customer
payment ecommerce Acquirer
Avatar
0
dub 17
5075
Import/export from multilanguage woocommerce + Swiss payment acquirements for ecommerce
payment ecommerce
Avatar
Avatar
Avatar
2
říj 23
2959
Can any one explain process to configure payment acquirer?
payment Acquirer
Avatar
Avatar
Avatar
Avatar
3
úno 24
4045
Problem with payment methods in ecommerce odoo13 Vyřešeno
payment ecommerce
Avatar
1
úno 22
3006
E-commerce issues after checkout in Multi-company environment
payment ecommerce
Avatar
0
čvc 21
3161
Komunita
  • Tutoriály
  • Dokumentace
  • Fórum
Open Source
  • Stáhnout
  • Github
  • Runbot
  • Překlady
Služby
  • Odoo.sh hostování
  • Podpora
  • Upgrade
  • Nestandardní vývoj
  • Edukační program
  • Najít účetní
  • Najít partnera
  • Stát se partnerem
O nás
  • Naše společnost
  • Podklady značky
  • Kontakujte nás
  • Práce
  • Události
  • Podcast
  • Blog
  • Zákazníci
  • Právní dokumenty • Soukromí
  • Zabezpečení
الْعَرَبيّة 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 je balíček open-source aplikací, které pokrývají všechny potřeby vaší společnosti: CRM, e-shop, účetnictví, sklady, kasy, projektové řízení a další.

Unikátní nabídka od Odoo poskytuje velmi jednoduché uživatelské rozhraní a vše je integrované na jednom místě.

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