Installation and connection¶
Prepare a mame account, an active TWINT store, the plugin license and an Odoo administrator account. The public Odoo address must use HTTPS and accept incoming callbacks. Scheduled actions must run. Keep a database and filestore backup before installing or updating modules.
Install the matching package¶
In your mame account, open Downloads → TWINT for Odoo and choose Odoo 19 or Odoo 20. Extract that bundle into your configured addons directory. On Odoo.sh, add the addons to the project's Git repository and let Odoo.sh build the change. On self-hosting, restart Odoo after adding the files.
Enable developer mode if needed, update the Apps list and install:
- TWINT (
payment_mame_twint) for payments, refunds and saved methods. - TWINT – eCommerce (
website_sale_mame_twint) for Express checkout in an Odoo shop. - The Subscriptions companion only if you use the official Enterprise
sale_subscriptionapp. Do not install it into a Community-only system.
Keep all installed companions on the same release and Odoo major version. Do not use the Odoo 19 ZIP in Odoo 20 or vice versa.
Connect Odoo and mame¶
Open TWINT → TWINT providers and select TWINT for the intended company. In Odoo 20, use Configuration; in Odoo 19, use Credentials. Choose Connect with mame.
- Check the public HTTPS Odoo URL and choose the website or Customer portal only. This company and scope use one activation: Single includes one, Multi includes up to five.
- Choose saved methods and Express according to the workflows used in Odoo. Use the question-mark help for explanations. You can adjust these options later.
- Choose Continue with mame, then Open mame setup. Allow the popup if your browser blocks it.
- Sign in to your mame account. Select or create your TWINT store and payment configuration and complete activation/terms. In step 3: License and connection, select your valid Odoo Single or Multi license. If none is listed, purchase a license in the same mame account and refresh the list.
- Choose Connect Odoo and keep the Odoo window open. Odoo activates the selected license for this company and website and stores the connection settings automatically; you do not need to copy API credentials.
The provider shows its connection status, store and license expiry. Choose a Payment Journal, enable and publish the provider, and activate its TWINT payment method. Use CHF. Saved methods use Odoo’s tokenization option. Manual Capture is a separate payment option and is normally left off.
Reconnect or set up another connection¶
Use Synchronize connection to check the current connection and refresh its license status after renewing in mame. After Disconnect license, use Reconnect to reactivate the same connection with the saved credentials, then review activation and publication in Odoo. Previously archived saved methods remain archived.
Choose Set up a new connection to select another store, license, website or public address. The same mame popup guides you through store, payment configuration and license selection. Cancelling the first dialog changes nothing. Continuing creates a separate TWINT provider that starts disabled; your original connection and previous payments stay with the old provider. Closing the popup opens the new provider so you can finish or resume setup. Check its payment journal and enable it when ready. If replacing the previous provider, stop offering that provider before enabling the new one. In Odoo 20, a disabled provider is archived: find it with the Archived filter and unarchive it when ready. In Odoo 19, use the Enabled checkbox.
Each active connection uses one license activation. To reuse a Single license, disconnect the old connection first; Multi can use a free activation. Keep the old provider for refunds and payment history. Existing subscriptions and saved methods are not moved to a new provider automatically.
Manual connection when needed¶
The regular setup hides technical fields. Choose Show manual settings in the provider or Enter credentials manually in its setup dialog only if you need this fallback. Prepare a TWINT Client ID, Client Secret, license, store ID and hexadecimal webhook key in mame; enter them in Odoo and choose Connect and activate license. Odoo uses Client Credentials, not a personal API token. Leave secret fields empty to retain existing credentials.
Connected identity fields are read-only. Use a new provider for another company, website, public origin or store so previous payments remain accessible. Payment return and webhook addresses are generated automatically. The public Odoo address must accept callbacks; run Run setup check to verify incoming webhook reachability separately.
Check the setup¶
Checkout publication turns green when Checkout availability → Published in checkout is enabled and saved. This controls customer visibility in Odoo, separately from the mame connection and server environment. The local diagnostic updates immediately; another API check is unnecessary. To offer Express, also enable the feature and select the desired button positions.
Choose Run setup check in the provider configuration. The panel checks Odoo availability, publication, the TWINT payment method, CHF journal and scheduled payment jobs. It also tests the mame API and a signed callback separately without creating a payment. Review Last connection check before relying on a remote result. A local/private URL cannot receive callbacks from hosted mame; your administrator needs a stable public HTTPS test address for that test.
Last successful payment sync and Last payment webhook show actual operation/receipt activity, separately from the setup probe. Follow the displayed error guidance and reconcile the original operation before retrying a payment. An active scheduled-job definition still requires the server scheduler to be running. A successful check does not replace payment/accounting acceptance.
First acceptance checks¶
Use the agreed TWINT test environment before going live. Check a normal purchase, an abandoned purchase, a duplicate callback, a refund and the resulting Odoo payment/journal entry. Test saved methods and each optional feature you enable. For physical products, test delivery addresses, shipping and tax changes.
Production is the default. A developer can select mame Stage only in the Odoo server environment and must use a separate connection. There is no Live/Test selector in the TWINT setup. A local simulator checks integration behavior but cannot replace acceptance with TWINT.
The provider stores credentials encrypted. Back up the encryption key together with the database: normally data_dir/mame_twint/credentials.key, or the persistent key supplied by your hosting administrator. Without that key, a restored database cannot use the stored credentials.