public virtual void RefundPayment(PaymentMethod paymentMethod, long orderId, string merchantReference, long amount)
        {
            var request = new DoRefund()
            {
                Meta    = { MerchantId = paymentMethod.DynamicProperty <int>().MerchantId },
                Payment =
                {
                    OrderId           = orderId,
                    MerchantReference = merchantReference,
                    Amount            = amount
                }
            };

            SendTextAndCheckResponseForErrors(GetServiceUrl(paymentMethod), request.ToString());
        }
Esempio n. 2
0
        public void RefundOrder()
        {
            var request = new DoRefund()
            {
                Meta    = { MerchantId = 7454 },
                Payment =
                {
                    OrderId           =          1200003945,
                    MerchantReference = "Reference111-4222",
                    Amount            = 1000
                }
            };

            var text   = request.ToString();
            var caller = new ServiceApiCaller("HTTPS://ps.gcsip.nl/wdl/wdl");

            // Act
            var responseText = caller.Send(text);
        }