public ScanCardResult(PayPalStatus status, Card card = null) { Status = status; Card = card; }
internal void SendScanCardCompleted(Xamarin.PayPal.iOS.CardIOCreditCardInfo cardInfo) { var card = new Card( cardInfo.Scanned, cardInfo.RedactedCardNumber, cardInfo.PostalCode, (int)cardInfo.ExpiryYear, (int)cardInfo.ExpiryMonth, cardInfo.Cvv, ((CreditCardType)(uint)cardInfo.CardType), cardInfo.CardNumber, (cardInfo.CardImage == null) ? null : ImageSource.FromStream(() => cardInfo.CardImage.AsPNG().AsStream()) ); gcardTcs.SetResult(new ScanCardResult(PayPalStatus.Successful, card)); }