charge method
Starts Standard Transaction
Implementation
Future<ChargeResponse> charge() async {
final request = StandardRequest(
txRef: txRef,
amount: amount,
customer: customer,
paymentOptions: paymentOptions,
customization: customization,
isTestMode: isTestMode,
publicKey: publicKey,
currency: currency,
paymentPlanId: paymentPlanId,
redirectUrl: redirectUrl,
subAccounts: subAccounts,
meta: meta);
return await Navigator.push(
context,
MaterialPageRoute(
builder: (context) => PaymentWidget(
request: request,
style: style ?? FlutterwaveStyle(),
mainContext: context,
),
),
);
}