question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

I 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:closed
  • Created 5 years ago
  • Comments:20 (13 by maintainers)

github_iconTop GitHub Comments

2reactions
jumaallancommented, Mar 19, 2019

@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

0reactions
jumaallancommented, Aug 22, 2021

Closing this issue, for being stale for a while now 😶‍🌫️

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found