Streamlined API
See original GitHub issueI believe the API could be streamlined to support the common use cause of a business that wants to start receiving payments. ie
//Final implementation
Daraja daraja = new Daraja.Builder() //could be injected or single instanced
.setConsumerKey("")
.setConsumerSecrtet("")
.setCallbackUrl("")
.setBusinessShortCode("")
.setAccountType(TransactionType.CustomerBuyGoodsOnline)
.setParty(""); //not sure if partyA or partyB
//simpler API requests that returns the DarajaListener
daraja.pay("phone", "amount", "description"); //creates an LNMExpress class from Daraja and does api request
Currently, LNMExpress class holds to much scope, some of which should be held in the Daraja class.
I am willing to create a PR to demonstrate the same
Issue Analytics
- State:
- Created 5 years ago
- Comments:20 (13 by maintainers)
Top Results From Across the Web
We explain how using an API can save you money - Scribendi
Learn what an API is and how to streamline your operations by using one. ... The term API is an acronym for application...
Read more >Open API in Streamline | Vacation Rental Management Software
Streamline's API encompasses access to: Property Information; Property Reservations; Property Calendars and Availability; Property Owner Details; Property ...
Read more >Streamline API - Directa24 Documentation
The Streamline API allows you to create payments via Online Bank Payment, Cash Payment or Credit Card Methods. The customer doesn't need to...
Read more >Streamlined API Functions | LumenVox Knowledgebase
Streamlined API Functions. To help streamline development for new users working with the LumenVox API, we have made some changes to the header...
Read more >How to Use APIs to Streamline Processes and Increase ...
Using APIs to streamline processes is one of the best ways to ensure your business stays ahead of the curve and manage data...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@gilokimu
I might have an idea we can look at. Do you see how Firebase works, i.e the Cloud Messaging or Remote Config for example, Firebase is able to get your device regardless of the connected network you are connected to. The way I see it, its like they have a way to ping your device i.e in a callback way. If we are able to look at this, we could make the whole SDK work in the Android SDK. Let me get in touch with you actually, but we can move on with the discussion here
Closing this issue, for being stale for a while now 😶🌫️