private static PaymentProcessed BuildPaymentProcessed(ProcessPiggyPayment processPayment, PiggyPaymentStatus status)
        {
            var paymentProcessed = new PaymentProcessed();

            processPayment.CopyPayment(paymentProcessed);
            paymentProcessed.ProcessedAt       = DateTime.UtcNow;
            paymentProcessed.Status            = status.Status.ToString();
            paymentProcessed.AcquirerPaymentId = status.PaymentId;
            return(paymentProcessed);
        }
        private static PiggyPaymentRequest BuildPiggyRequest(ProcessPiggyPayment processPayment)
        {
            var piggyRequest = new PiggyPaymentRequest();

            piggyRequest.CardNumber  = processPayment.CardNumber;
            piggyRequest.Cvv         = processPayment.Cvv;
            piggyRequest.ExpiryMonth = processPayment.ExpiryMonth;
            piggyRequest.ExpiryYear  = processPayment.ExpiryYear;
            piggyRequest.From        = processPayment.CardHolderName;
            piggyRequest.To          = processPayment.MerchantName;
            piggyRequest.Amount      = processPayment.Amount;
            piggyRequest.Currency    = processPayment.Currency;
            return(piggyRequest);
        }