Ejemplo n.º 1
0
        private Maybe<bool> CheckPayment(PaymentResponse paymentResponse, bool isValidSignature)
        {
            Maybe<bool> result = new Maybe<bool>();

            if (isValidSignature)
            {
                if (Convert.ToInt32(paymentResponse.Ds_Response) == 0)
                {
                    result = new Maybe<bool>(true);
                }
                else
                {
                    result = new Maybe<bool>(false);
                }
            }

            return result;
        }
Ejemplo n.º 2
0
 public ProcessedPayment(PaymentResponse paymentResponse, bool isValidSignature)
 {
     IsValidSignature   = isValidSignature;
     IsPaymentPerformed = CheckPayment(paymentResponse, IsValidSignature);
     PaymentResponse    = paymentResponse;
 }
Ejemplo n.º 3
0
 public ProcessedPayment(PaymentResponse paymentResponse, bool isValidSignature)
 {
     IsValidSignature = isValidSignature;
     IsPaymentPerformed = CheckPayment(paymentResponse, IsValidSignature);
     PaymentResponse = paymentResponse;
 }