Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

transactionCompleted method not called after payment successful #6

Closed
juniorwasiu opened this issue Dec 17, 2022 · 8 comments
Closed

Comments

@juniorwasiu
Copy link

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");

@popekabu
Copy link
Owner

Sorry for the late response, do you have a valid Secret key?

@juniorwasiu
Copy link
Author

juniorwasiu commented Jan 19, 2023 via email

@nestsoft-dev
Copy link

Please I use a vaild secret key and am not getting transaction complete callback

@anohene1
Copy link

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.

@popekabu
Copy link
Owner

popekabu commented Mar 29, 2023 via email

@anohene1
Copy link

anohene1 commented Mar 29, 2023 via email

@popekabu
Copy link
Owner

Checkout the new version- 1.0.3. If you would also like to be a contributor, Please let me know thanks

@anohene1
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants