protected override void OnDestroy() { try { if (AppSettings.ShowPaypal) { InitPayPalPayment?.StopPayPalService(); } if (AppSettings.ShowInAppBilling) { BillingPayment?.DisconnectInAppBilling(); } ProfileFragment?.Time?.SetStopTimer(); OffWakeLock(); base.OnDestroy(); } catch (Exception exception) { Console.WriteLine(exception); } }
protected override void OnDestroy() { try { switch (AppSettings.ShowInAppBilling) { case true when Client.IsExtended: BillingPayment?.DisconnectInAppBilling(); break; } switch (AppSettings.ShowPaypal) { case true: InitPayPalPayment?.StopPayPalService(); break; } switch (AppSettings.ShowRazorPay) { case true: InitRazorPay?.StopRazorPay(); break; } switch (AppSettings.ShowPayStack) { case true: PayStackPayment?.StopPayStack(); break; } switch (AppSettings.ShowCashFree) { case true: CashFreePayment?.StopCashFree(); break; } switch (AppSettings.ShowPaySera) { case true: PaySeraPayment?.StopPaySera(); break; } DestroyBasic(); base.OnDestroy(); } catch (Exception exception) { Methods.DisplayReportResultTrack(exception); } }
protected override void OnDestroy() { try { InitPayPalPayment?.StopPayPalService(); BillingPayment?.DisconnectInAppBilling(); base.OnDestroy(); } catch (Exception exception) { Console.WriteLine(exception); } }
protected override void OnDestroy() { try { if (AppSettings.ShowInAppBilling && Client.IsExtended) { BillingPayment?.DisconnectInAppBilling(); } else { InitPayPalPayment?.StopPayPalService(); } DestroyBasic(); base.OnDestroy(); } catch (Exception exception) { Console.WriteLine(exception); } }