account_payment_stripe
This page combines editorial guidance with evidence extracted from the selected official branch. Always test the flow with your own permissions and configuration.
Purpose
The account_payment_stripe module allows to receive payment from Stripe. It uses Stripe.js and Stripe Elements in a checkout form to handle Setup Intent_ and Payment Intent_ by card.
The analysis found 8 Python files, 14 XML files, 11 views, 21 actions, 3 menus, and 2 reports.
Functional user guide
Who should use it
This module is relevant to people responsible for account payment stripe processes, company configuration, and result review. Administrators should participate whenever dependencies, permissions, or sequences are introduced.
What you will be able to do
After configuration, you will be able to identify the records added by account_payment_stripe, execute actions in the correct state, produce its reports, and understand the information shared with other modules.
Requirements and preparation
Before activation, verify company, currency, users, and groups. Install and configure required dependencies first. When real data exists, rehearse activation and upgrades on a restored copy.
Activate dependencies first, review company configuration, and rehearse the complete workflow before production use.
Required dependencies
account— must be installed and configured before testing this module.account_payment— must be installed and configured before testing this module.ir— must be installed and configured before testing this module.party— must be installed and configured before testing this module.
Optional integrations
- —
Recommended initial configuration
- Activate the module and sign in again to load menus and permissions.
- Review new company configuration options and defaults.
- Assign groups to test users using least privilege.
- Create small, verifiable master data before bulk imports.
- Run one complete scenario from draft to final state and inspect related records.
Module objects and concepts
- account.payment: groups 11 model(s), including
account.payment,account.payment.group,account.payment.journal,account.payment.stripe.account,account.payment.stripe.checkout. These records form the information users inspect or modify during the process. - ir.cron: groups 1 model(s), including
ir.cron. These records form the information users inspect or modify during the process. - party.party: groups 2 model(s), including
party.party,party.party.reception_direct_debit. These records form the information users inspect or modify during the process. - party.replace: groups 1 model(s), including
party.replace. These records form the information users inspect or modify during the process.
Typical workflow
- Select the correct company and date before creating a document.
- Complete master data before lines or details.
- Use form buttons for state changes; saving is not the same as validating or posting.
- Review warnings, totals, related documents, and traceability.
- Generate the report and compare it with the record before delivery.
Actions, states, and wizards
approve— action or transition that starts approve. Check permissions, current state, and related records before running it.detach_source— action or transition that starts detach source. Check permissions, current state, and related records before running it.draft— action or transition that starts draft. Check permissions, current state, and related records before running it.find_identical— action or transition that starts find identical. Check permissions, current state, and related records before running it.new_identifier— action or transition that starts new identifier. Check permissions, current state, and related records before running it.stripe_checkout— action or transition that starts stripe checkout. Check permissions, current state, and related records before running it.stripe_do_capture— action or transition that starts stripe do capture. Check permissions, current state, and related records before running it.submit— action or transition that starts submit. Check permissions, current state, and related records before running it.approved— action or transition that starts approved. Check permissions, current state, and related records before running it.failed— action or transition that starts failed. Check permissions, current state, and related records before running it.processing— action or transition that starts processing. Check permissions, current state, and related records before running it.submitted— action or transition that starts submitted. Check permissions, current state, and related records before running it.succeeded— action or transition that starts succeeded. Check permissions, current state, and related records before running it.account.payment.stripe.checkout— wizard that collects data and performs account › payment › stripe › checkout. Check permissions, current state, and related records before running it.
Controls before production
- Define who creates, reviews, confirms, cancels, and reads.
- Test closed periods, unauthorized users, and incomplete data.
- Verify numbering, currency, rounding, and time zone where applicable.
- Document error correction without direct database edits.
- Include its tables and files in backup and restore procedures.
Troubleshooting
- If a menu is missing, verify activation, module-list update, groups, and a new login session.
- If a field rejects a value, inspect its domain, company, state, and configured dependencies.
- If a button is hidden or disabled, check permissions and valid transitions; never change state with SQL.
- If results differ, reproduce a minimal case and compare related records before and after.
- Keep the full traceback, version, active modules, and minimal data needed to diagnose an error.
Developer guide
Architecture and extension points
The package contains 18 Python classes and declares or extends 15 models. It uses Boolean, Char, Function, Integer, Many2Many, Many2One, One2Many, Selection, TimeDelta. Developers should first determine whether a class creates a model or uses PoolMeta to extend one, preserve super() calls, and avoid duplicating dependency rules.
Registered or extended models
account.paymentaccount.payment.groupaccount.payment.journalaccount.payment.stripe.accountaccount.payment.stripe.checkoutaccount.payment.stripe.customeraccount.payment.stripe.customer.fingerprintaccount.payment.stripe.customer.identicalaccount.payment.stripe.customer.source.detachaccount.payment.stripe.customer.source.detach.askaccount.payment.stripe.refundir.cronparty.partyparty.party.reception_direct_debitparty.replace
Field types used
BooleanCharFunctionIntegerMany2ManyMany2OneOne2ManySelectionTimeDelta
Detected classes and public methods
Classes: Account, Checkout, CheckoutMixin, CheckoutPage, Cron, Customer, CustomerFingerprint, CustomerIdentical, CustomerSourceDetach, CustomerSourceDetachAsk, Group, Journal, Party, PartyReceptionDirectDebit, Payment, Refund, Replace, StripeCustomerMethodMixin
Methods: approve(), check_stripe_journal(), copy(), create(), default_ask(), default_setup_intent_delay(), default_state(), default_stripe_capturable(), default_stripe_capture(), default_stripe_captured(), default_stripe_chargeable(), default_stripe_idempotency_key(), delete(), delete_source(), detach_source(), do_checkout(), draft(), fail(), fetch_events(), fetch_fingeprints(), fields_to_replace(), find_identical(), get_rec_name(), get_sources(), get_stripe_amount(), get_stripe_capture_needed(), get_stripe_checkout_needed(), get_stripe_customer_payment_method(), get_stripe_customer_payment_methods(), get_stripe_customer_source(), get_stripe_customer_sources(), new_identifier(), on_change_party(), on_change_stripe_customer_payment_method_selection(), on_change_stripe_customer_source_selection(), on_change_with_company(), on_change_with_currency(), on_change_with_stripe_account(), on_change_with_stripe_checkout_needed(), on_change_with_webhook_endpoint(), payment_methods(), process(), process_stripe(), retrieve(), set_stripe_amount(), set_stripe_customer_payment_method(), set_stripe_customer_source(), sources(), stripe_capture_(), stripe_charge(), stripe_charge_(), stripe_checkout(), stripe_checkout_url(), stripe_create(), stripe_delete(), stripe_do_capture(), stripe_intent_update(), stripe_payment_intent(), stripe_pull(), stripe_setup_intent(), stripe_update(), submit(), succeed(), table_query(), transition_detach(), validate_fields(), view_attributes(), webhook(), webhook_charge_captured(), webhook_charge_dispute_closed(), webhook_charge_dispute_created(), webhook_charge_expired(), webhook_charge_failed(), webhook_charge_pending(), webhook_charge_refund_updated(), webhook_charge_refunded(), webhook_charge_succeeded(), webhook_payment_intent_amount_capturable_updated(), webhook_payment_intent_canceled(), webhook_payment_intent_payment_failed(), webhook_payment_intent_succeeded(), webhook_source_canceled(), webhook_source_chargeable(), webhook_source_failed(), write()
Code map
Detected 8 Python files, 14 XML files, and 0 explicit access files. XML connects models to views, menus, actions, and reports; access CSV files establish initial permissions.
__init__.pycommon.pydoc/conf.pyir.pymessage.xmlparty.pyparty.xmlpayment.pypayment.xmlroutes.pysetup.pyview/account_form.xmlview/account_list.xmlview/customer_form.xmlview/customer_list.xmlview/customer_source_detach_ask_form.xmlview/party_reception_direct_debit_form.xmlview/payment_form.xmlview/payment_journal_form.xmlview/payment_list.xmlview/refund_form.xmlview/refund_list.xml
Test plan
- Activation on an empty database and upgrade from the previous revision.
- Create, update, copy, and delete according to state and access rights.
- Every button, transition, and wizard with valid and invalid scenarios.
- Applicable multi-company rules, translations, time zones, and currencies.
- Combined installation with required and optional dependencies.
- Backup and restore of records, attachments, and generated reports.
Compatibility and upgrades
Keep server and modules on series 7.0. Before upgrading, compare tryton.cfg, __register__ migrations, state changes, XML IDs, and permissions. A successful build does not replace a rehearsed migration or functional data reconciliation.
Official documentation evidence
Topics found: Account Payment Stripe Module · Account · Customer · Journal · Payment · Configuration
-
- doc/index.rst: The account_payment_stripe module allows to receive payment from
Stripe. It usesStripe.js and Stripe Elementsin a checkout form to handleSetup Intent_ andPayment Intent_ by card.
- doc/index.rst: The account_payment_stripe module allows to receive payment from