Trycatching payment processor activity crash
@@ -87,6 +87,7 @@ public final class PaymentProcessorActivity extends AppCompatActivity
final Session session = Session.getSession(getApplicationContext());
+ try {
paymentServiceHandlerWrapper = new PaymentServiceHandlerWrapper(session.getPaymentRepository(),
session.getConfigurationModule().getDisabledPaymentMethodRepository(),
new EscManagerImp(session.getMercadoPagoESC()), session.getInstructionsRepository());
@@ -94,6 +95,9 @@ public final class PaymentProcessorActivity extends AppCompatActivity
if (fragmentByTag == null) { // if fragment is not added, then create it.
addPaymentProcessorFragment(supportFragmentManager, session);
}
+ } catch (final Exception e) {
+ onBackPressed();
+ }
}
private void addPaymentProcessorFragment(@NonNull final FragmentManager supportFragmentManager,
