payStackPayment static method
dynamic
payStackPayment({})
payStackPayment is called,to integrate PayStackPayment gateway.
Following parameters are context
, emailId
, amount
, and payStackKey
must be non-null.
payStackKey
get from the official site of PAYSTACK which is mentaioned below.
paystack.com/.
Implementation
static payStackPayment({
required BuildContext context,
required double amount,
required String uniqueRefrenceID,
required String callbackUrl,
required String emailId,
required String payStackKey,
}) {
return PaystackService().openPaystack(
context: context,
amount: amount,
emailId: emailId,
payStackKey: payStackKey,
uniqueRefrenceID: uniqueRefrenceID,
callbackUrl: callbackUrl);
}