Example #1
0
  private void showThankForYourPayment() {
    final DialogTwoOptionsOF info = new DialogTwoOptionsOF(this);
    info.setMessageDialog(getResources().getString(R.string.thanks_payment));
    info.setOption1(getResources().getString(R.string.ok));
    info.setOption2("Make Another Payment.");
    info.setOrientationButtons(LinearLayout.VERTICAL);
    info.setListenerOption1(
        new View.OnClickListener() {

          @Override
          public void onClick(View v) {
            info.dismissDialog();
            onBackPressed();
          }
        });
    info.setListenerOption2(
        new View.OnClickListener() {

          @Override
          public void onClick(View v) {
            info.dismissDialog();
          }
        });
    info.showDialog();
  }
Example #2
0
  private void showConfirmationCardPayment() {
    final DialogTwoOptionsOF of = new DialogTwoOptionsOF(this);
    of.setMessageDialog("Are you sure you want to submit?");
    of.setOption1(getString(R.string.yes));
    of.setOption2(getString(R.string.no));
    of.setListenerOption1(
        new View.OnClickListener() {

          @Override
          public void onClick(View arg0) {
            of.dismissDialog();
            submitAsyncPayment();
          }
        });
    of.setListenerOption2(DialogTwoOptionsOF.getListenerDismiss(of));
    of.showDialog();
  }
Example #3
0
  private void showConfirmationECheckPayment() {
    final DialogTwoOptionsOF info = new DialogTwoOptionsOF(this);
    info.setMessageDialog(getResources().getString(R.string.dialog_confirmation_echeck));
    info.setOption1(getResources().getString(R.string.yes));
    info.setOption2(getResources().getString(R.string.no));
    info.setListenerOption1(
        new View.OnClickListener() {

          @Override
          public void onClick(View v) {
            submitAsyncPayment();
            info.dismissDialog();
          }
        });
    info.setListenerOption2(
        new View.OnClickListener() {

          @Override
          public void onClick(View v) {
            info.dismissDialog();
          }
        });
    info.showDialog();
  }
Example #4
0
  private void showDialogAddNewPayment() {
    final DialogTwoOptionsOF options = new DialogTwoOptionsOF(this);
    options.setMessageDialog("You have not added a payment method");
    options.setOption1("OK");
    options.setOption2("Add New Payment Method");
    options.setListenerOption2(
        new View.OnClickListener() {

          @Override
          public void onClick(View arg0) {
            options.dismissDialog();
            addNewPaymentMethod(null);
          }
        });
    options.setListenerOption1(
        new View.OnClickListener() {

          @Override
          public void onClick(View v) {
            options.dismissDialog();
          }
        });
    options.showDialog();
  }