initializeShurjopay function

Future initializeShurjopay({
  1. required String environment,
})

To use shurjoPay flutter package, you must initialize it at first by passing environment type.

Example:

 initializeShurjopay(environment: "sandbox");

Implementation

Future initializeShurjopay({required String environment}) async {
  await registerSingletons();
  await createDioSingleton(environment);
}