startPayment method

dynamic startPayment(
  1. dynamic context, {
  2. required PayloadModel payload,
  3. required dynamic onSuccess(
    1. Map
    ),
  4. required dynamic onCancel(
    1. dynamic
    ),
})

Begins the payment by triggering the overlay of the Seerbit Checkout Modal

Implementation

startPayment(context,
    {required PayloadModel payload,
    required Function(Map) onSuccess,
    required Function(dynamic) onCancel}) {
  showModalBottomSheet(
      context: context,
      isScrollControlled: true,
      builder: (_) {
        return SeerbitPayment(
            payload: payload, onSuccess: onSuccess, onCancel: onCancel);
      });
}