Skip to content
This repository has been archived by the owner on Dec 16, 2023. It is now read-only.

Commit

Permalink
Fix mpesa payment
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkNjunge committed Aug 10, 2018
1 parent ca63b56 commit a11f8a3
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -57,13 +57,15 @@ class PreviousOrderPresenter(private val view: PreviousOrderView,
.addOnSuccessListener { emitter.onSuccess(it.token) }
.addOnFailureListener {
Timber.e(it)
emitter.onSuccess("")
emitter.onError(it)
}
}
}

getFcmToken().flatMap { token ->
mpesa.sendStkPush(total, phoneNumber, orderId, token)
.subscribeOn(Schedulers.io())
.observeOn(AndroidSchedulers.mainThread())
}
.subscribeOn(Schedulers.io())
.observeOn(AndroidSchedulers.mainThread())
Expand Down

0 comments on commit a11f8a3

Please sign in to comment.