コード例 #1
0
ファイル: Request.cs プロジェクト: wencesbc/csharp-sdk
        public override void SetResponse()
        {
            if (ParameterValidator.IsEmpty(rawResponse))
            {
                throw new ErrorException("rawResponse is empty!");
            }
            PAYNLSDK.Objects.PaymentMethod pm = JsonConvert.DeserializeObject <PAYNLSDK.Objects.PaymentMethod>(RawResponse);
            Response r = new Response();

            r.PaymentMethod = pm;
            response        = r;
        }
コード例 #2
0
        protected override void PrepareAndSetResponse()
        {
            if (ParameterValidator.IsEmpty(rawResponse))
            {
                throw new PayNlException("rawResponse is empty!");
            }
            PAYNLSDK.Objects.PaymentMethod pm = JsonConvert.DeserializeObject <PAYNLSDK.Objects.PaymentMethod>(RawResponse);
            Response r = new Response
            {
                PaymentMethod = pm
            };

            response = r;
        }