Closed juniorwasiu closed 1 year ago
Sorry for the late response, do you have a valid Secret key?
On Thu, Jan 19, 2023 at 4:02 PM Daniel Kabu Asare @.***> wrote:
Sorry for the late response, do you have a valid Secret key?
— Reply to this email directly, view it on GitHub https://github.com/popekabu/pay_with_paystack/issues/6#issuecomment-1397113163, or unsubscribe https://github.com/notifications/unsubscribe-auth/AF56H46GPQCKPZXXQZG44OLWTFJQZANCNFSM6AAAAAATBXRXXM . You are receiving this because you authored the thread.Message ID: @.***>
Yes i do have a secret key
Please I use a vaild secret key and am not getting transaction complete callback
I thought the callback would run automatically after payment succeeds or fails, but going through the code, I see the X button has to be clicked before the callbacks run.
Yeah. Working on an update
On Wed, Mar 29, 2023 at 8:23 PM Isaac Anohene @.***> wrote:
I thought the callback would run automatically after payment succeeds or fails, but going through the code, I see the X button has to be clicked before the callbacks run.
— Reply to this email directly, view it on GitHub https://github.com/popekabu/pay_with_paystack/issues/6#issuecomment-1489255259, or unsubscribe https://github.com/notifications/unsubscribe-auth/AGMACNLQ6LHVBZ3YCSCW5PDW6SK5DANCNFSM6AAAAAATBXRXXM . You are receiving this because you commented.Message ID: @.***>
Good to know! I was planning on making a pull request this weekend with that update too. I thought of polling their servers for it, although they don't recommend it, but I don't know how I would use their webhooks in flutter
On Wed, Mar 29, 2023, 9:04 PM Daniel Kabu Asare @.***> wrote:
Yeah. Working on an update
On Wed, Mar 29, 2023 at 8:23 PM Isaac Anohene @.***> wrote:
I thought the callback would run automatically after payment succeeds or fails, but going through the code, I see the X button has to be clicked before the callbacks run.
— Reply to this email directly, view it on GitHub < https://github.com/popekabu/pay_with_paystack/issues/6#issuecomment-1489255259 , or unsubscribe < https://github.com/notifications/unsubscribe-auth/AGMACNLQ6LHVBZ3YCSCW5PDW6SK5DANCNFSM6AAAAAATBXRXXM
. You are receiving this because you commented.Message ID: @.***>
— Reply to this email directly, view it on GitHub https://github.com/popekabu/pay_with_paystack/issues/6#issuecomment-1489318616, or unsubscribe https://github.com/notifications/unsubscribe-auth/ALRU2T7NPLQ4S5C7OQ4ITY3W6SPXDANCNFSM6AAAAAATBXRXXM . You are receiving this because you commented.Message ID: @.***>
Checkout the new version- 1.0.3. If you would also like to be a contributor, Please let me know thanks
I just saw your implementation, and it's better than what I was planning to do. And yes, I would like to be a contributor. I totally forgot about my initial decision to contribute
i try to log a print message on my debugconsole on transaction complete didnot work. also try out the sample test code
PayWithPayStack().now( context: context, secretKey: "sk_live_XXXXXXXXXXXXXXXXXXXXXXXXXXXX", customerEmail: "popekabu@gmail.com", reference: DateTime.now().microsecondsSinceEpoch.toString(), currency: "GHS", paymentChannel:["mobile_money", "card""] amount: "20000", transactionCompleted: () { print("Transaction Successful"); }, transactionNotCompleted: () { print("Transaction Not Successful!"); });
this part is not printing print("Transaction Successful");