popekabu / pay_with_paystack

MIT License
9 stars 21 forks source link

Response code 403 #11

Closed Hafsa-Awan closed 1 year ago

Hafsa-Awan commented 1 year ago

HI @popekabu i am using same code just added my email and changed currency to NGN but GOT ERROR

Response Code: Exception: 403. Response <html Body<!DOCTYPE html> Lang="en-US">

Just a moment...</ title> </div> </div> <div class="comment"> <div class="user"> <a rel="noreferrer nofollow" target="_blank" href="https://github.com/Hafsa-Awan"><img src="https://avatars.githubusercontent.com/u/123202172?v=4" />Hafsa-Awan</a> commented <strong> 1 year ago</strong> </div> <div class="markdown-body"> <p>@popekabu why am I getting this as a response? Could you help me understand what I'm doing wrong?</p> </div> </div> <div class="comment"> <div class="user"> <a rel="noreferrer nofollow" target="_blank" href="https://github.com/popekabu"><img src="https://avatars.githubusercontent.com/u/26738997?v=4" />popekabu</a> commented <strong> 1 year ago</strong> </div> <div class="markdown-body"> <p>Can you please share your code ? On Tue, Jul 4, 2023 at 19:19 Hafsa-Awan <strong><em>@</em></strong>.***> wrote:</p> <blockquote> <p>@popekabu <a href="https://github.com/popekabu">https://github.com/popekabu</a> why am I getting this as a response? Could you help me understand what I'm doing wrong?</p> <p>— Reply to this email directly, view it on GitHub <a href="https://github.com/popekabu/pay_with_paystack/issues/11#issuecomment-1620639445">https://github.com/popekabu/pay_with_paystack/issues/11#issuecomment-1620639445</a>, or unsubscribe <a href="https://github.com/notifications/unsubscribe-auth/AGMACNPIKWGJG6WHUZLJ2GDXORUFLANCNFSM6AAAAAAZ3PEQBM">https://github.com/notifications/unsubscribe-auth/AGMACNPIKWGJG6WHUZLJ2GDXORUFLANCNFSM6AAAAAAZ3PEQBM</a> . You are receiving this because you were mentioned.Message ID: <strong><em>@</em></strong>.***></p> </blockquote> </div> </div> <div class="comment"> <div class="user"> <a rel="noreferrer nofollow" target="_blank" href="https://github.com/Hafsa-Awan"><img src="https://avatars.githubusercontent.com/u/123202172?v=4" />Hafsa-Awan</a> commented <strong> 1 year ago</strong> </div> <div class="markdown-body"> <p>i just added dependency: pay_with_paystack: ^1.0.3 in pub.yaml file and run the pub get command in my terminal. then added import 'package:pay_with_paystack/pay_with_paystack.dart'; in my file where there is button and on button on pressed I added this code </p> <p>PayWithPayStack().now( context: context, secretKey: "sk_test_xxxxxxxxxxxxxxxxxxxxxxxxx", customerEmail: email!, reference: DateTime.now().microsecondsSinceEpoch.toString(), currency: "NGN", paymentChannel:["card"], amount: "20000", transactionCompleted: () { print("Transaction Successful"); }, transactionNotCompleted: () { print("Transaction Not Successful!"); });</p> </div> </div> <div class="comment"> <div class="user"> <a rel="noreferrer nofollow" target="_blank" href="https://github.com/popekabu"><img src="https://avatars.githubusercontent.com/u/26738997?v=4" />popekabu</a> commented <strong> 1 year ago</strong> </div> <div class="markdown-body"> <p>It could be that your paystack test key is not valid or active</p> </div> </div> <div class="page-bar-simple"> </div> <div class="footer"> <ul class="body"> <li>© <script> document.write(new Date().getFullYear()) </script> Githubissues.</li> <li>Githubissues is a development platform for aggregating issues.</li> </ul> </div> <script src="https://cdn.jsdelivr.net/npm/jquery@3.5.1/dist/jquery.min.js"></script> <script src="/githubissues/assets/js.js"></script> <script src="/githubissues/assets/markdown.js"></script> <script src="https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@11.4.0/build/highlight.min.js"></script> <script src="https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@11.4.0/build/languages/go.min.js"></script> <script> hljs.highlightAll(); </script> </body> </html>