chargeCard method

Future<CheckoutResponse> chargeCard(
  1. BuildContext context, {
  2. required Charge charge,
})

Make payment by charging the user's card

context - the widgets BuildContext

charge - the charge object.

Implementation

Future<CheckoutResponse> chargeCard(BuildContext context,
    {required Charge charge}) {
  _performChecks();

  return _Paystack(publicKey).chargeCard(context: context, charge: charge);
}