Buggy code:
private Button payNowBtn ; private String cardNumber ; private String cvv ; private String expiryDate ; private String [ ] expDateArray ; private int expMonth ; private int expYear ; private VeritransSDK veritransSDK ; private UserDetail userDetail ; private ArrayList < BankDetail > bankDetails ; private String cardType = "" ; int currentPosition ; int totalPositions ; private final String MONTH = "Month" ; private boolean isInstalment = false ; private RelativeLayout formLayout ; public ArrayList < String > getBins ( ) { } private ArrayList < String > bins = new ArrayList < > ( ) ; public OffersAddCardDetailsFragment ( ) { } @ Override public void onCreate ( Bundle savedInstanceState ) { } public static OffersAddCardDetailsFragment newInstance ( int position , String offerName , String offerType ) { } @ Nullable @ Override public View onCreateView ( LayoutInflater inflater , ViewGroup container , Bundle savedInstanceState ) { } @ Override public void onViewCreated ( View view , @ Nullable Bundle savedInstanceState ) { } private void initialiseView ( View view ) { } private void setToolbar ( ) { } private void hideOrShowPayWithInstalment ( boolean isShowLayout ) { } private void showDuration ( ) { } private void disableEnableMinusPlus ( ) { } private void onMinusClicked ( ) { } private void onPlusClicked ( ) { } private void hideOrShowOfferStatus ( boolean isShowLayout , boolean isOfferApplied ) { } private void bindCreditCardView ( View view ) { formLayout = ( ( RelativeLayout ) ( view . findViewById ( form_layout ) ) ) ; etCardNo = ( ( EditText ) ( view . findViewById ( et_card_no ) ) ) ; etCvv = ( ( EditText ) ( view . findViewById ( et_cvv ) ) ) ; etExpiryDate = ( ( EditText ) ( view . findViewById ( et_exp_date ) ) ) ; cbStoreCard = ( ( CheckBox ) ( view . findViewById ( cb_store_card ) ) ) ; questionImg = ( ( ImageView ) ( view . findViewById ( image_question ) ) ) ; payNowBtn = ( ( Button ) ( view . findViewById ( btn_pay_now ) ) ) ; etCardNo . setOnFocusChangeListener ( new View . OnFocusChangeListener ( ) { @ Override public void onFocusChange ( View v , boolean hasFocus ) { Logger . i ( "onFocus<seq2seq4repair_space>change<seq2seq4repair_space>etCardNo" ) ; if ( ! hasFocus ) { Logger . i ( "onFocus<seq2seq4repair_space>change<seq2seq4repair_space>not<seq2seq4repair_space>etCardNo" ) ; offerStatusValidation ( ) ; focusChange ( ) ; } else { Logger . i ( "onFocus<seq2seq4repair_space>change<seq2seq4repair_space>has<seq2seq4repair_space>focus<seq2seq4repair_space>etCardNo" ) ; } } } ) ; etCvv . setOnFocusChangeListener ( new View . OnFocusChangeListener ( ) { @ Override public void onFocusChange ( View v , boolean hasFocus ) { Logger . i ( "onFocus<seq2seq4repair_space>change<seq2seq4repair_space>etCvv" ) ; if ( ! hasFocus ) { Logger . i ( "onFocus<seq2seq4repair_space>change<seq2seq4repair_space>not<seq2seq4repair_space>etCvv" ) ; focusChange ( ) ; } else { Logger . i ( "onFocus<seq2seq4repair_space>change<seq2seq4repair_space>has<seq2seq4repair_space>focus<seq2seq4repair_space>etCvv" ) ; } } } ) ; etExpiryDate . setOnFocusChangeListener ( new View . OnFocusChangeListener ( ) { @ Override public void onFocusChange ( View v , boolean hasFocus ) { Logger . i ( "onFocus<seq2seq4repair_space>change<seq2seq4repair_space>etExpiryDate" ) ; if ( ! hasFocus ) { Logger . i ( "onFocus<seq2seq4repair_space>change<seq2seq4repair_space>not<seq2seq4repair_space>etExpiryDate" ) ; focusChange ( ) ; } else { Logger . i ( "onFocus<seq2seq4repair_space>change<seq2seq4repair_space>has<seq2seq4repair_space>focus<seq2seq4repair_space>etExpiryDate" ) ; } } } ) ; cbStoreCard . setOnFocusChangeListener ( new View . OnFocusChangeListener ( ) { @ Override public void onFocusChange ( View v , boolean hasFocus ) { isValid ( false ) ; } } ) ; if ( veritransSDK . isLogEnabled ( ) ) { } payNowBtn . setOnClickListener ( new View . OnClickListener ( ) { @ Override public void onClick ( View v ) { if ( isValid ( true ) ) { <START_BUG> CardTokenRequest cardTokenRequest = new CardTokenRequest ( cardNumber , Integer . parseInt ( cvv ) , expMonth , expYear , veritransSDK . getClientKey ( ) ) ; <END_BUG> int instalmentTerm = 0 ; if ( isInstalment ) { String duration = textViewInstalment . getText ( ) . toString ( ) . trim ( ) ; String [ ] durationSplit = duration . split ( "<seq2seq4repair_space>" ) ; duration = durationSplit [ 0 ] ; try { instalmentTerm = Integer . parseInt ( duration ) ; } catch ( NumberFormatException ne ) { ne . printStackTrace ( ) ; } cardTokenRequest . setInstalment ( isInstalment ) ; cardTokenRequest . setInstalmentTerm ( instalmentTerm ) ; } cardTokenRequest . setIsSaved ( cbStoreCard . isChecked ( ) ) ; cardTokenRequest . setSecure ( veritransSDK . getTransactionRequest ( ) . isSecureCard ( ) ) ; cardTokenRequest . setGrossAmount ( veritransSDK . getTransactionRequest ( ) . getAmount ( ) ) ; cardTokenRequest . setCardType ( cardType ) ; cardTokenRequest . setBins ( bins ) ; if ( ( ( bankDetails ) != null ) && ( ! ( bankDetails . isEmpty ( ) ) ) ) { String firstSix = cardNumber . substring ( 0 , 6 ) ; for ( BankDetail bankDetail : bankDetails ) { if ( bankDetail . getBin ( ) . equalsIgnoreCase ( firstSix ) ) { cardTokenRequest . setBank ( bankDetail . getIssuing_bank ( ) ) ; cardTokenRequest . setCardType ( bankDetail . getCard_association ( ) ) ; break ; } } } SdkUtil . showProgressDialog ( getActivity ( ) , false ) ; ( ( OffersActivity ) ( getActivity ( ) ) ) . getToken ( cardTokenRequest ) ; } } } ) ; questionImg . setOnClickListener ( new View . OnClickListener ( ) { @ Override public void onClick ( View v ) { VeritransDialog veritransDialog = new VeritransDialog ( getActivity ( ) , getResources ( ) . getDrawable ( cvv_dialog_image , null ) , getString ( message_cvv ) , getString ( got_it ) , "" ) ; veritransDialog . show ( ) ; } } ) ; etCardNo . addTextChangedListener ( new TextWatcher ( ) { private static final char space = '<seq2seq4repair_space>' ;

Fix:
CardTokenRequest cardTokenRequest = new CardTokenRequest ( cardNumber , Integer . parseInt ( cvv ) , String . valueOf ( expMonth ) , expYear , veritransSDK . getClientKey ( ) ) ;