Skrill C#实现仅显示Sofortbanking选项

时间:2014-06-02 10:58:50

标签: c#

我的skrill付款网站只显示一个选项作为付款选项: enter image description here

我打电话给他们,他们说我的商家帐户启用了所有选项,这是我方面的问题,但我没有通过任何限制付款选项的价值。

我正在构建这样的url以接收SID,稍后我将用户重定向到:

public string CreateSkrillUrl(SkrillModel data)
        {
            var url = "https://www.moneybookers.com/app/payment.pl";

            HttpWebRequest request = (HttpWebRequest)WebRequest.Create(url);
            request.Method = "POST";
            request.Timeout = 25000;
            request.ContentType = "application/x-www-form-urlencoded";

            using (var writer = new StreamWriter(request.GetRequestStream()))
            {
                writer.Write("pay_to_email=" + data.PayToEmail);
                writer.Write("&transaction_id =" + data.TransactionId);
                writer.Write("&language=" + data.Language);
                writer.Write("&amount=" + data.Amount);
                writer.Write("&currency=" + data.Currency);
                writer.Write("&status_url=" + data.StatusUrl);
                writer.Write("&return_url=" + data.ReturnUrl);
                //writer.Write("&payment_type=" + data.PaymentType);
                writer.Write("&prepare_only=1");
            }

            var response = (HttpWebResponse)request.GetResponse();

            using (var sr = new StreamReader(response.GetResponseStream()))
            {
                url += "?sid=" + sr.ReadToEnd();
            }
            return url;
        }

这是内置网址的示例:

  

https://www.moneybookers.com/app/payment.pl?sid=3d5cb6da4b7c06e1c2d4affd91dc2d34

实际重定向到:

  

https://www.skrill.com/pay?sid=507e0d9d0591b8d550c57dd1b0060ed2

2 个答案:

答案 0 :(得分:0)

SofortBanking显示您的金额小于0.50。这不是一个错误......来自Skrill的这些支持人员对此并不了解......

答案 1 :(得分:0)

您需要再传递一个参数:

writer.Write("& payment_methods =" +" WLT,VSA,MSC");