Exemplo n.º 1
0
        public PaymentResponse InvokePaymentRequestWithExtra(PaymentRequestWithExtra paymentRequestWithExtra)
        {
            URLs url = new URLs(this.IsSandBox, true);

            _HttpCore.URL       = url.GetPaymentRequestURL();
            _HttpCore.Method    = Method.POST;
            _HttpCore.Raw       = PaymentRequest;
            this.PaymentRequest = PaymentRequest;
            String response = _HttpCore.Get();

            PaymentResponse _Response = Newtonsoft.Json.JsonConvert.DeserializeObject <PaymentResponse>(response);

            _Response.PaymentURL = url.GetPaymenGatewayURL(_Response.Authority);

            return(_Response);
        }
Exemplo n.º 2
0
        public PaymentResponse InvokePaymentRequestWithExtra(PaymentRequestWithExtra paymentRequestWithExtra)
        {
            URLs url = new URLs(this.IsSandBox, true);

            _HttpCore.URL       = url.GetPaymentRequestURL();
            _HttpCore.Method    = Method.POST;
            _HttpCore.Raw       = PaymentRequest;
            this.PaymentRequest = PaymentRequest;
            String response = _HttpCore.Get();

            JavaScriptSerializer j         = new JavaScriptSerializer();
            PaymentResponse      _Response = j.Deserialize <PaymentResponse>(response);

            _Response.PaymentURL = url.GetPaymenGatewayURL(_Response.Authority);

            return(_Response);
        }