startPayment method
dynamic
startPayment(
- dynamic context, {
- required PayloadModel payload,
- required dynamic onSuccess(),
- required dynamic onCancel(
- 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);
});
}