diff --git a/library/src/main/java/com/vinaygaba/creditcardview/CreditCardView.java b/library/src/main/java/com/vinaygaba/creditcardview/CreditCardView.java index afa9112..5c27779 100644 --- a/library/src/main/java/com/vinaygaba/creditcardview/CreditCardView.java +++ b/library/src/main/java/com/vinaygaba/creditcardview/CreditCardView.java @@ -622,6 +622,7 @@ public boolean getIsCardNameEditable() { return mIsCardNameEditable; } + public void setIsCardNameEditable(boolean isCardNameEditable) { mIsCardNameEditable = isCardNameEditable; redrawViews(); @@ -678,6 +679,15 @@ public void putChip(boolean flag) { redrawViews(); } + public void setIsCvvEditable(boolean editable){ + mCvvEditable =editable; + redrawViews(); + } + + public boolean getIsCvvEditable(){ + return mCvvEditable; + } + /** * Return the appropriate drawable resource based on the card type *