depositsMerchantWidget function

Widget depositsMerchantWidget(
  1. BuildContext context,
  2. ButtonConfig buttonConfig, {
  3. required String merchantID,
  4. required bool envMode,
  5. required String apiKey,
})

Implementation

Widget depositsMerchantWidget(
  BuildContext context,
  ButtonConfig buttonConfig, {
  required String merchantID,
  required bool envMode,
  required String apiKey,
}) {
  HttpOverrides.global = MyHttpOverrides();
  GetStorage.init();
  Utils.loadEnvFile();
  return ShopButton(
    context: context,
    buttonConfig: buttonConfig,
    merchantID: merchantID,
    envMode: envMode,
    apiKey: apiKey,
  );
}