贝宝IPN响应不可进入的Andr​​oid手机浏览器 [英] Paypal IPN response not getting into Android Mobile Browser

查看:250
本文介绍了贝宝IPN响应不可进入的Andr​​oid手机浏览器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是新来的贝宝的整合,我想实现贝宝IPN我的Andr​​oid应用程序。为了使它的工作,我已创建了一个网页(使用PHP和发送给贝宝沙箱帐户,方法(GET)),因为我做的付款。而我得到的付款状态来源于此。

I am new to Paypal integration, and I am trying to implement Paypal IPN for my android application. For make it working, I have created one web-page (Using PHP and sending to Paypal sandbox account , method (GET) ) in that I am doing payment. And I am getting payment status from this.

其实这个网页的正常工作,并得到响应做支付到计算机浏览器,但同样的事情后,如果我做支付与Android手机浏览器,然后我没有得到任何回应,形成了贝宝付款我已经做到了。

Actually this web page working properly and get response after do payment into Computer Browser but same thing if I am doing payment with Android Mobile browser then I am not getting any response form the Paypal for payment I have did.

我使用这个网址 <一href="https://developer.paypal.com/webapps/developer/docs/classic/ipn/integration-guide/IPNIntro/">IPN

下面是我的HTML code。

Here is my HTML code.

      <form name="payment_form" id="payment_form" action="https://www.sandbox.paypal.com/cgi-bin/webscr" method="GET" onSubmit="return form_submit();">
      <input type="text" name="amount"  id="amount" value="1" readonly class="form-control left-icon">
      <input type="hidden" readonly name="cmd" value="_xclick">
      <input type="hidden" readonly  name="business" value="Bmlpatel@gmail.com">
      <input type="hidden" readonly name="item_name" value="TEST Store">
      <input type="hidden" readonly name="LC" value="AL"> 
      <input type="hidden" readonly name="country" value="USA">
      <input type="hidden" readonly name="quantity" value="1"> 
      <input type="hidden" readonly name="notify_url" value="http://XX.111.XXX.XX/payment/response.php">
      <input type="hidden" readonly name="return" value="http://XX.111.XXX.XX/payment/response.php">
      <input type="hidden" readonly name="cancel_url" value="http://XX.111.XXX.XX/payment/">
      <input class="btn btn-success" name="action" value="Recharge" type="submit">
      </form>

因此​​,任何帮助这个话题AP preciated。

So any help to this topic appreciated.

推荐答案

您应该确保你有IPN在您的PayPal设置打开:

You should make sure you have IPN turned on in your PayPal settings:

  • 在登录到您的支付宝账户,然后转到个人资料→个人资料和放大器;设置→ 卖preferences→即时付款通知preferences: (或者点击此处直接进入该页面,确保 您点击链接),然后你登录到您的支付宝账户
  • 点击打开IPN的PayPal网站。
  • 您将被提示输入URL的通知,应该是 任何URL - 它只会被你的 notify_url 参数替换
  • 保存设置
  • Log into your PayPal account and go to Profile → Profile & Settings → Selling Preferences → Instant Payment Notification preferences: (alternatively click here to go directly to the page, making sure you're logged into your PayPal account before you click the link)
  • Click Turn On IPN on the PayPal site.
  • You will then be prompted for a Notification URL, which should be any URL - it will only be replaced by your notify_url parameter
  • Save your settings

如果你已经做到了这一点,那么你需要确保你的通知URL是通过外界访问,你看起来就像你正在使用的IP,以便使用类似的 https://www.hidemyass.com/proxy 来检查你的网站是绝对可用。

If you've already done this then you need to make sure your Notification URL is accessible via the outside world, you look like you're using an IP so using something like https://www.hidemyass.com/proxy to check your site is definitely available.

如果这些方法都失败这可能是一个问题与贝宝和Android的网页浏览器的方式,去codeS的 notify_url 。我有这个问题,他们有时 notify_url 被剪短 - 我们怀疑这是只在Android浏览器

If all else fails it may be an issue with PayPal and the way it decodes the notify_url from Android web browsers. I have this issue with them and sometimes the notify_url is cut short - and we suspect it's only on Android browsers.

检查 IPN记录您PayPal帐户,你会看到的IPN被送到确切的网址和状态。

Check your IPN history on your PayPal account and you'll see the exact URL the IPN was sent to and the status.

这篇关于贝宝IPN响应不可进入的Andr​​oid手机浏览器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆