protected override void OnActivityResult(int requestCode, Result resultCode, Intent data) { if (resultCode == Result.Ok) { // Debug.printToast("Result Code is OK", getApplicationContext()); string name = data.GetStringExtra(CreditCardUtils.ExtraCardHolderName); string cardNumber = data.GetStringExtra(CreditCardUtils.ExtraCardNumber); string expiry = data.GetStringExtra(CreditCardUtils.ExtraCardExpiry); string cvv = data.GetStringExtra(CreditCardUtils.ExtraCardCvv); if (requestCode == CREATE_NEW_CARD) { CreditCardView creditCardView = new CreditCardView(Application.Context) { CVV = cvv, CardHolderName = name, CardNumber = cardNumber }; creditCardView.SetCardExpiry(expiry); cardContainer.AddView(creditCardView); int index = cardContainer.ChildCount - 1; EditCreditCardEvent(index, creditCardView); } else { CreditCardView creditCardView = cardContainer.GetChildAt(requestCode) as CreditCardView; creditCardView.SetCardExpiry(expiry); creditCardView.CardNumber = cardNumber; creditCardView.CardHolderName = name; creditCardView.CVV = cvv; } } }