Availability |
Odoo Online
Odoo.sh
On Premise
|
Odoo Apps Dependencies |
Discuss (mail)
|
Lines of code | 496 |
Technical Name |
payment_konnect |
License | LGPL-3 |
Versions | 17.0 18.0 |
Payment Provider: Konnect
Konnect is a tunisian payment provider. It provides an easy payment experience for your customers and an easy integration process for the developers. Payment process works by initializing Payment Requests and then the customers accepting those Payment Requests.
- Create payment request URLs, each request has a unique Payment Reference.
- Your customers have the choice to specify their payment methods.
- You receive the payment confirmation with a unique Payment ID.

SETUP
Create a Konnect account on:
- https://dashboard.sandbox.konnect.network for testing the module.
- https://dashboard.konnect.network to start accepting payments.

First, you need to start by creating a Konnect organization by clicking on the button framed in red and filling out the form bellow.


After installing the Konnect module, the Konnect provider will be added to the list of payment providers under the menus:
- Sales/Configurations/Online Payments/Payment Providers
- Accounting/Configurations/Online Payments/Payment Providers
- Invoicing/Configurations/Online Payments/Payment Providers
- Website/Configurations/eCommerce/Payment Providers

Four Konnect payment methods will also be added to the list of payment methods under the menus:
- Sales/Configurations/Online Payments/Payment Methods
- Accounting/Configurations/Online Payments/Payment Methods
- Invoicing/Configurations/Online Payments/Payment Methods
- Website/Configurations/eCommerce/Payment Methods
- Bank Card (Visa/MasterCard)
- E-Dinar (Post Card)
- Flouci (Financial Super App)
- Wallet (Online Konnect Wallet)

We need to fill in the
Konnect credentials. To do this, We open the
Konnect payment provider form view.
First, We copy the Konnect wallet ID framed in
red from the Konnect dashboard.

Then, We paste it into the Konnect wallet key field framed in red of the konnect provider form view.

After that, We click on the generate an api key button framed in red. Then, We click on the generate button also framed in red. Then, We copy the Konnect api key.


Then, We paste it into the Konnect api key field framed in red of the konnect provider form view.

To complete the configuration of our payment provider, We access the Configuration tab in which there are the additional configurations. We must select a Payment Journal in the field framed in red. We can also customize our provider by modifying the following fields:
- Lifespan: Duration before the payment transaction expires, in minutes.
- Payment Fees: Ask the client to pay an extra amount to cover Konnect fees. This will slightly raise the amount of the payment from the payer side.
- Checkout Form: Ask the payer to fill a checkout form before payment.
- Silent Webhook: If this is true, Konnect will make the call to the webhook without redirecting the payer to the webhook URL.
- Theme: Theme for the payment gateway. It may be Dark or Light.
- Transaction type: The type decides if the payment could be paid partially (partial) or should be paid all at once (immediate).
- Description: A description you can add to the payment transaction. It will be seen by the payer in the gateway payment page.
- Payment Journal: the financial journal used to record and manage payments made by the current provider.
- Maximum Amount: The maximum amount per transaction.
- Currencies: By default, the available currencies for the Konnect payment provider are EUR, USD and TND.
- Countries: By default, the only available country is Tunisia.

After customizing our payment provider, We need to change its State to either "Test Mode" or "Enabled" to enable it. Then, We need to publish Konnect by clicking on the Unpublished button framed in red.

By default, the four
payment methods ("Flouci", "Bank Card", Wallet" and
"E-Dinar")
are enabled. We can disable the unwanted ones either from the
list view or from the
form view which also gives us the hand to
configure the
available currencies and countries for this
payment method.
By default, the available currencies for the Konnect payment
methods are EUR, USD and TND and the only available country is
Tunisia.


Finally, our provider
configuration is complete. We can use it by accessing our
Website, putting the products to buy in the cart.
Then, We open the Cart.
First, We must fill in
the delivery and billing addresses. Then, We must
choose a payment method. Then, We click on the
Pay now button.
The available currencies for the Konnect payment
provider and the Konnect payment methods must be the same.
Additionally, the available countries must also
be the same for both Konnect payment provider and Konnect payment
methods. Furthermore, the billing address must be
compatible with the
Konnect payment provider available countries.

We fill out the
payment form
with the bank card credentials below.
To test our payment provider, Konnect gives us the following
cards:
Brand | Output | Number | Exp Date | CVC |
---|---|---|---|---|
Visa | Successful Payment | 4509211111111119 | 12/26 | Visa |
MasterCard | Successful Payment | 5440212711111110 | 12/26 | 665 |
MasterCard | Failed Payment | 5471251111111116 | 11/23 | 858 |

The payment is processed and the Odoo is making the necessary changes.

Finally, the payment has been successfully processed, the transaction has been recorded, and the shopping cart is now empty.

To verify that the transaction was successful, We can view the dashboard of Konnect payment provider.

Please log in to comment on this module