Example #1
0
 private void PopulateInformation()
 {
     if (informationList == null)
     {
         informationList = PaymentInformationList.ForPayment(this);  // caution: assumes the list is static over lifetime of the payment object
     }
 }
Example #2
0
        public static PaymentInformationList FromArray(BasicPaymentInformation[] basicArray)
        {
            PaymentInformationList result = new PaymentInformationList {
                Capacity = basicArray.Length * 11 / 10
            };

            foreach (BasicPaymentInformation basic in basicArray)
            {
                result.Add(PaymentInformation.FromBasic(basic));
            }

            return(result);
        }