Closed Hafsa-Awan closed 1 year ago
@popekabu why am I getting this as a response? Could you help me understand what I'm doing wrong?
Can you please share your code ? On Tue, Jul 4, 2023 at 19:19 Hafsa-Awan @.***> wrote:
@popekabu https://github.com/popekabu why am I getting this as a response? Could you help me understand what I'm doing wrong?
— Reply to this email directly, view it on GitHub https://github.com/popekabu/pay_with_paystack/issues/11#issuecomment-1620639445, or unsubscribe https://github.com/notifications/unsubscribe-auth/AGMACNPIKWGJG6WHUZLJ2GDXORUFLANCNFSM6AAAAAAZ3PEQBM . You are receiving this because you were mentioned.Message ID: @.***>
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
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!"); });
It could be that your paystack test key is not valid or active
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">