/// <summary>
        /// Decision Point Registration Charge
        /// </summary>
        /// <param name="payment">StripePayment</param>
        /// <param name="paymentResponse">PaymentResponse</param>
        /// <createdby>Sumit Saurav</createdby>
        /// <createdDate>may/22/2014</createdDate>
        /// <returns>string type result.</returns>
        public static string DecisionPointRegistrationCharge(StripePayment payment, PaymentResponse paymentResponse)
        {
            RecurringPaymentResponseParam objRecurring            = null;
            DecisionPointRepository       decisionPointRepository = null;

            #region Create Customer

            //create customer and set annual plan.
            string AnnualCustomerId = CreateCustomer(payment, paymentResponse);

            //save customer details in the database
            objRecurring = new RecurringPaymentResponseParam()
            {
                UserId     = paymentResponse.UserId,
                CustomerId = AnnualCustomerId,
                Amount     = Convert.ToInt32(paymentResponse.CompanyFee),
                Remark     = "Annual and Monthly Plans",
                Type       = "insert"
            };
            decisionPointRepository = new DecisionPointRepository();
            decisionPointRepository.MakeRecurringPayment(objRecurring);
            #endregion


            #region Make Registration payment
            //get credit card details
            StripeCreditCardInfo cc = GetCC(paymentResponse);
            //make first time payment.
            StripeCharge charge      = payment.Charge(Convert.ToInt32(paymentResponse.Amount), "usd", cc, paymentResponse.TransactionType);
            string       charge_id   = charge.ID;
            StripeCharge charge_info = payment.GetCharge(charge_id);
            #endregion

            return(charge_id);
        }
        public static int UpdateCustomerDetails(StripePayment payment, PaymentResponse paymentResponse)
        {
            RecurringPaymentResponseParam objRecurring            = null;
            DecisionPointRepository       decisionPointRepository = null;

            #region Create Customer

            //create customer and set annual plan.
            string AnnualCustomerId = CreateCustomer(payment, paymentResponse);

            //save customer details in the database
            objRecurring = new RecurringPaymentResponseParam()
            {
                UserId     = paymentResponse.UserId,
                CustomerId = AnnualCustomerId,
                Amount     = Convert.ToInt32(paymentResponse.CompanyFee),
                Remark     = "Annual and Monthly Plans",
                Type       = "update"
            };
            decisionPointRepository = new DecisionPointRepository();
            return(decisionPointRepository.MakeRecurringPayment(objRecurring));

            #endregion
        }