-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add model fields to PaymentTransaction Admin View (#4)
* TCW add extra fields to PaymentTransaction Admin View * Move safaricom-api to .env (#1)
- Loading branch information
1 parent
7bb6da6
commit 56ff29d
Showing
5 changed files
with
51 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -103,3 +103,4 @@ venv.bak/ | |
# mypy | ||
.mypy_cache/ | ||
.idea* | ||
.vscode |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
@host =http://localhost:8000 | ||
@phoneNumber=2547XXXXXXXX | ||
|
||
|
||
### | ||
# @name requestSTKPush | ||
POST {{host}}/mpesa/submit/ HTTP/1.1 | ||
content-type: application/json | ||
|
||
{ | ||
"phone_number":{{phoneNumber}}, | ||
"amount": 1, | ||
"entity_id":1 | ||
} | ||
|
||
|
||
### | ||
# @name checkTransactionFromMPESA | ||
POST {{host}}/mpesa/check-online/ HTTP/1.1 | ||
content-type: application/json | ||
|
||
{ | ||
"transaction_id" : 4 | ||
} | ||
|
||
|
||
### | ||
# @name checkTransactionlocally | ||
POST {{host}}/mpesa/check-transaction/ HTTP/1.1 | ||
content-type: application/json | ||
|
||
{ | ||
"transaction_id" : 4 | ||
} | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
CONSUMER_KEY=[consumer_key] | ||
CONSUMER_SECRET=[consumer secret from daraja] | ||
HOST_NAME=[host name] | ||
CERTIFICATE_FILE=[path to certifiate file] | ||
CERTIFICATE_FILE=[path to certifiate file] | ||
SAFARICOM_API=http://sandbox.safaricom.co.ke |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters