Skip ke Konten
Odoo Menu
  • Login
  • Uji coba gratis
  • Aplikasi
    Keuangan
    • Akuntansi
    • Faktur
    • Pengeluaran
    • Spreadsheet (BI)
    • Dokumen
    • Tanda Tangan
    Sales
    • CRM
    • Sales
    • POS Toko
    • POS Restoran
    • Langganan
    • Rental
    Website
    • Website Builder
    • eCommerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Rantai Pasokan
    • Inventaris
    • Manufaktur
    • PLM
    • Purchase
    • Maintenance
    • Kualitas
    Sumber Daya Manusia
    • Karyawan
    • Rekrutmen
    • Cuti
    • Appraisal
    • Referensi
    • Armada
    Marketing
    • Social Marketing
    • Email Marketing
    • SMS Marketing
    • Acara
    • Otomatisasi Marketing
    • Survei
    Layanan
    • Project
    • Timesheet
    • Layanan Lapangan
    • Meja Bantuan
    • Planning
    • Appointment
    Produktivitas
    • Diskusi
    • Approval
    • IoT
    • VoIP
    • Pengetahuan
    • WhatsApp
    Aplikasi pihak ketiga Odoo Studio Platform Odoo Cloud
  • Industri-Industri
    Retail
    • Toko Buku
    • Toko Baju
    • Toko Furnitur
    • Toko Kelontong
    • Toko Hardware
    • Toko Mainan
    Makanan & Hospitality
    • Bar dan Pub
    • Restoran
    • Fast Food
    • Rumah Tamu
    • Distributor Minuman
    • Hotel
    Real Estate
    • Agensi Real Estate
    • Firma Arsitektur
    • Konstruksi
    • Estate Management
    • Perkebunan
    • Asosiasi Pemilik Properti
    Konsultansi
    • Firma Akuntansi
    • Mitra Odoo
    • Agensi Marketing
    • Firma huku
    • Talent Acquisition
    • Audit & Sertifikasi
    Manufaktur
    • Tekstil
    • Logam
    • Perabotan
    • Makanan
    • Brewery
    • Corporate Gift
    Kesehatan & Fitness
    • Sports Club
    • Toko Kacamata
    • Fitness Center
    • Wellness Practitioners
    • Farmasi
    • Salon Rambut
    Perdagangan
    • Handyman
    • IT Hardware & Support
    • Sistem-Sistem Energi Surya
    • Pembuat Sepatu
    • Cleaning Service
    • Layanan HVAC
    Lainnya
    • Organisasi Nirlaba
    • Agen Lingkungan
    • Rental Billboard
    • Fotografi
    • Penyewaan Sepeda
    • Reseller Software
    Browse semua Industri
  • Komunitas
    Belajar
    • Tutorial-tutorial
    • Dokumentasi
    • Sertifikasi
    • Pelatihan
    • Blog
    • Podcast
    Empower Education
    • Program Edukasi
    • Game Bisnis 'Scale Up!'
    • Kunjungi Odoo
    Dapatkan Softwarenya
    • Download
    • Bandingkan Edisi
    • Daftar Rilis
    Kolaborasi
    • Github
    • Forum
    • Acara
    • Terjemahan
    • Menjadi Partner
    • Layanan untuk Partner
    • Daftarkan perusahaan Akuntansi Anda.
    Dapatkan Layanan
    • Temukan Mitra
    • Temukan Akuntan
    • Temui penasihat
    • Layanan Implementasi
    • Referensi Pelanggan
    • Bantuan
    • Upgrades
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Dapatkan demo
  • Harga
  • Bantuan

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

  • CRM
  • e-Commerce
  • Akuntansi
  • Inventaris
  • PoS
  • Project
  • MRP
All apps
Anda harus terdaftar untuk dapat berinteraksi di komunitas.
Semua Post Orang Lencana-Lencana
Label (Lihat semua)
odoo accounting v14 pos v15
Mengenai forum ini
Anda harus terdaftar untuk dapat berinteraksi di komunitas.
Semua Post Orang Lencana-Lencana
Label (Lihat semua)
odoo accounting v14 pos v15
Mengenai forum ini
Help

Manage Payment Token On A Subscription

Langganan

Dapatkan notifikasi saat terdapat aktivitas pada post ini

Pertanyaan ini telah diberikan tanda
subscriptionpaymenttokenpayment.token
2 Replies
5014 Tampilan
Avatar
Ben Thresher

I'd like to make it so that a partner can manage which payment token their individual subscription(s) is using. I dug around in the odoo & odoo-enterprise code, and found that there actually is a "Manage Payment Method" button on the portal that was hidden, possibly by our own code.

I read some enterprise code, and found:

​

​main class="modal-body">
div id="payment_method" class="text-start">
t t-call="payment.manage">
t t-set="assign_token_route" t-value="'/my/subscription/assign_token/' + str(subscription.id)"/>
t t-set="landing_route" t-value="subscription.get_portal_url() + '&message=Your payment method has been changed for this subscription.&message_class=alert-success'"/>



This code seems to be calling this template in payment_templates.xml in odoo:


template id="manage" name="Payment Manage">
- 'acquirers' - The payment acquirers supporting tokenization
- 'tokens' - The set of payment tokens of the current partner
- 'default_token_id' - The id of the token that should be pre-selected. Optional
# - 'reference_prefix' - The custom prefix to compute the full transaction reference
- 'partner_id' - The id of the partner managing the tokens
# - 'access_token' - The access token used to authenticate the partner.
# - 'transaction_route' - The route used to create a validation transaction
- 'assign_token_route' - The route to call to assign a token to a record. If set, it
enables the token assignation mechanisms: creation of a new
token through a refunded transaction and assignation of an
existing token
- 'landing_route' - The route the user is redirected to at then end of the flow
- 'footer_template_id' - The template id for the submit button. Optional
form name="o_payment_manage"


When I click "Manage Payment Method", a dialog pops up, but its empty. I assume this is because the enterprise code isn't passing all the mentioned arguments to The payment.manage template.

How do I get the values that the 'reference_prefix', 'access_token', and 'transaction_route' fields are asking for so that I can let the partner manage their subscription's payment method?

I'm in Odoo v15. I apologise for any confusion about this post and its duplicate, I had some trouble making this post and getting the formatting to show code, so I thought I had deleted the post. I have updated it since, in a way that it will hopefully be more read-able.

0
Avatar
Buang
Avatar
Antoine Vandevenne (anv)
Jawaban Terbai

Hello, the most likely issue is that there is no compatible payment acquirer for the current user. If there is no available payment acquirer or payment token, the button is hidden and the modal is empty.

You can check on this runbot where I created a subscription for Joel Willis (login with portal; portal). The button opens the modal with available payment acquirers and tokens.

1
Avatar
Buang
Ben Thresher
Penulis

We have a payment acquirer set up, and the button still didn't show. How is the "acquirers" variable actually being set? Where does it look in order to get its value?

Antoine Vandevenne (anv)

The `acquirers_sudo` variable is set here (https://github.com/odoo/enterprise/blob/15.0/sale_subscription/controllers/portal.py#L114-L120) and passed as `acquirers` to the template. In particular, it only considers acquirers that support tokenization ("save card for later"): https://www.odoo.com/documentation/15.0/applications/finance/payment_acquirers.html#supported-payment-acquirers

Ben Thresher
Penulis

We found the issue. Thank you for your help!

Avatar
Ben Thresher
Penulis Jawaban Terbai

We've found the issue to be within our own custom code. Antoine Vandevenne has been correct about everything they have said here.

0
Avatar
Buang
Menikmati diskusi? Jangan hanya membaca, ikuti!

Buat akun sekarang untuk menikmati fitur eksklufi dan agar terlibat dengan komunitas kami!

Daftar
Post Terkait Replies Tampilan Aktivitas
Manage Payment Token On A Subscription
subscription payment token Subscriptions
Avatar
0
Mei 23
2705
subscriptions: difference between "Send & try to charge" and "Send after succesful payment" modes
invoice subscription payment token
Avatar
0
Mei 24
4349
Payment Error when paying subscription
subscription payment
Avatar
0
Agu 24
1775
Stripe Payment Token for Subscription Auto-Charges
subscription payment token stripe v14
Avatar
Avatar
1
Jul 23
3203
Paypal subscriptions via webhook not working (Odoo Online V18)
subscription payment recurring paypal token webhook
Avatar
Avatar
1
Okt 25
462
Komunitas
  • Tutorial-tutorial
  • Dokumentasi
  • Forum
Open Source
  • Download
  • Github
  • Runbot
  • Terjemahan
Layanan
  • Odoo.sh Hosting
  • Bantuan
  • Peningkatan
  • Custom Development
  • Pendidikan
  • Temukan Akuntan
  • Temukan Mitra
  • Menjadi Partner
Tentang Kami
  • Perusahaan kami
  • Aset Merek
  • Hubungi kami
  • Tugas
  • Acara
  • Podcast
  • Blog
  • Pelanggan
  • Hukum • Privasi
  • Keamanan
الْعَرَبيّة 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 adalah rangkaian aplikasi bisnis open source yang mencakup semua kebutuhan perusahaan Anda: CRM, eCommerce, akuntansi, inventaris, point of sale, manajemen project, dan seterusnya.

Mudah digunakan dan terintegrasi penuh pada saat yang sama adalah value proposition unik Odoo.

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