Paypal通过静默网址重复订阅会给出无效回复?

时间:2013-05-22 12:28:48

标签: paypal paypal-sandbox paypal-subscriptions

Paypal通过静默网址重复订阅会在真实帐户中提供无效回复和空白状态以及订阅ID,但这对沙盒帐户有效。

string cmd = "_xclick-subscriptions";
        string redirect = "";        
        redirect += "?cmd=" + cmd;
        redirect += "&business=" + businessEmail;
        redirect += "&item_name=" + lblDesc.Text.Trim();        
        redirect += "&no_shipping=" + "2";
        redirect += "&no_note=" + "1";
        redirect += "&currency_code=" + "USD";
        redirect += "&lc=" + "";        
        redirect += "&return=" + successPage;
        redirect += "&cancel_return=" + FailurePage;
        redirect += "notify_url=" + successPage;
        redirect += "&rm=" + "2";
        //for first month free count=1
        redirect += "&a1=" + "0.0";
        redirect += "&p1=" + count.ToString();
        redirect += "&t1=" + "M";
        //new added parameter for recurring
        redirect += "&a3=" + total;
        redirect += "&p3=" + count.ToString();
        redirect += "&t3=" + "M";
        redirect += "&src=" + "1";
        redirect += "&sra=" + "1";      

        return "https://www.paypal.com/cgi-bin/webscr"+ redirect;

通过

获得回复
https://www.paypal.com/cgi-bin/webscr&cmd=_notify-validate

1 个答案:

答案 0 :(得分:1)

如果您尝试使用PDT获取响应,然后转身并进行验证,请确保在您的帐户中启用了PDT并设置了返回网址。然后尝试删除返回URL的代码行和您传递的rm变量。