【问题标题】:Paypal recurring subscription through silent url give invalid response?Paypal 通过静默 url 定期订阅给出无效响应?
【发布时间】:2013-05-17 12:08:57
【问题描述】:

Paypal 通过静默 url 定期订阅在真实账户上给出无效响应和空白状态和订阅 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

【问题讨论】:

  • 您是指当您被发送到 PayPal 时得到一个空白页面,还是当您被重定向回您的站点时得到一个空白页面?
  • 是的,当我从贝宝返回时,没有任何价值。

标签: paypal paypal-sandbox paypal-subscriptions


【解决方案1】:

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

【讨论】:

    猜你喜欢
    • 2021-06-15
    • 2017-07-29
    • 2010-10-03
    • 2014-10-21
    • 1970-01-01
    • 1970-01-01
    • 2012-08-19
    • 2015-12-04
    • 2021-10-15
    相关资源
    最近更新 更多