POS Safaricom
pos_safaricom · odoo/odoo
Health
58/100
fair
-
Security16/253 minor findings
-
Activity25/25Human commit this month
-
Required by5/250 modules depend on it
-
Maturity12/25In 2 Odoo series since 19.0
Heuristic over the facts below, not an audit · How it's computed
Required by
0
Modules depending on it
External deps
0 pip · 0 bin
Python packages / system binaries
License
LGPL-3
No conflicts with its dependencies
Folder size
0.63 MB
Module directory on disk
Code analysis
0 migration notes
4 models
2 views
3 HTTP endpoints
Description
Dependencies
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
Views touched 2
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
pos_payment_method_view_form_inherit_pos_safaricom |
pos.payment.method.form.inherit.safaricom | pos.payment.method | form | Inherits point_of_sale.pos_payment_method_view_form |
pos_safaricom.pos_order_receipt |
pos_safaricom.pos_order_receipt | ir.ui.view | qweb | Inherits point_of_sale.pos_order_receipt |
HTTP endpoints 3
| Route(s) | Handler | Auth | Type | Methods | Flags |
|---|---|---|---|---|---|
/c2b/confirmation/callback |
SafaricomController.c2b_confirmation_callback |
public | http | POST | csrf off sudo |
/c2b/validation/callback |
SafaricomController.c2b_validation_callback |
public | http | POST | csrf off sudo |
/pos_safaricom/callback |
SafaricomController.safaricom_callback |
public | http | POST | csrf off sudo |
Models touched 4
New fields (0)
No new fields.
Public methods (0)No public methods.
New fields (1)
-
safaricom_transaction_idCharrequired=Falsestring='Safaricom transaction id'
No public methods.
New fields (9)
-
business_short_codeCharstring='Business Short Code' -
consumer_keyCharstring='Consumer Key' -
consumer_secretChargroups='point_of_sale.group_pos_manager'string='Consumer Secret' -
passkeyChargroups='point_of_sale.group_pos_manager'help='The passkey is used to generate the password for the STK Push'string='Passkey' -
safaricom_identifier_typeSelectiondefault='till'selection=[('paybill', 'Paybill number'), ('till', 'Till number')]string='Identifier Type' -
safaricom_paybill_numberCharstring='Paybill number' -
safaricom_payment_typeSelectiondefault='mpesa_express'selection=[('mpesa_express', 'M-PESA Express'), ('lipa_na_mpesa', 'Lipa na M-PESA')]string='Payment Type' -
safaricom_test_modeBooleandefault=Truehelp='Use sandbox environment'string='Test Mode' -
safaricom_till_numberCharstring='Till number'
-
create(self, vals_list)@api.model_create_multiOverride create to automatically register URLs for Lipa na M-PESA payment methods -
generate_qr_code(self, data)Generate QR Code for Lipa na M-PESA with all informations needed to pay -
lipa_na_mpesa_register_urls(self)Register C2B URLs for Lipa na M-PESA The ValidationURL is the URL that will be called to validate the payment before charges the customer if business has activated it. The ConfirmationURL is the URL that will be called when the payment is successful or unsuccessful. The ResponseType is set to Completed to charge the customer even if the ValidationURL returns an error or is unreachable. This is a one-time API call. URLs should only be registered once unless force_register is True. -
mark_transaction_used(self, transaction_id) -
mpesa_express_send_payment_request(self, data)Send STK Push payment request to customer's phone
New fields (5)
-
amountIntegerstring='Amount' -
nameCharstring='Name' -
numberCharstring='Number' -
received_atDatetimestring='Received At' -
trans_idCharstring='Transaction ID'
No public methods.
Loading…