Kurejito.Gateways.SagePay.VspDirect.SagePayPaymentGateway.PopulateResponseProperty C# (CSharp) Method

PopulateResponseProperty() private method

private PopulateResponseProperty ( PaymentResponse response, string pair ) : void
response PaymentResponse
pair string
return void
        private void PopulateResponseProperty(PaymentResponse response, string[] pair)
        {
            if (pair.Length != 2) throw (new ArgumentException("Token " + string.Join(",", pair) + " was not an array with exactly two elements", "pair"));
            switch (pair[0]) {
                case "Status":
                    response.Status = ExtractStatus(pair);
                    return;
                case "VPSTxId":
                    response.PaymentId = pair[1];
                    return;
            }
        }