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; }
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; }