0

I need a callback URL so that when a mobile money API completes a payment transaction, my app can receive a message about the transaction status. I'm building a flutter app. I have seen that cloud functions may be the answer. So, I need help on how to get started on creating this callback URL.

I'm yet to try anything because all the material I have seen talks about JavaScript and websites. I need material on doing this in the flutter mobile app.

Gwhyyy
  • 7,554
  • 3
  • 8
  • 35

1 Answers1

0

look at this snippet I hope it helps

// await for your first function t
   await moneyFuntion()
        .whenComplete(() async  => await anotherAPIFuntion())
         .onError((error, stackTrace) {
      log("$error");
Mashood .H
  • 926
  • 6
  • 16