无法从 PayPal 的新屏幕获取正确的参数
我正在 Rails 中开发一个应用程序,我的问题是,现在 PayPal 屏幕的新设计,当它将客户端重定向到我的网页以通知他交易是否已正确完成时,我只能进入 [ :params]
控制器和操作的名称,当我应该收到这两个参数时:[: payment_status]
和 [:payer_status]
。
我会尽力解释得更好,有时,当用户在我的网页上完成结帐并单击“购买”按钮时,我的页面会将他重定向到 PayPal 屏幕,该屏幕的顶部有所购买产品的描述页面,有时会转到屏幕右侧有说明的另一个屏幕。
在他通过 PayPal 付款后,他可以选择返回我的页面,在那里他会收到诸如“交易已完成”之类的消息通知。问题是,用户总是被重定向到第二个 PayPal 屏幕,在他付款并返回我的页面后,会出现这样的消息“交易无法正确完成”,因为就像我之前所说的那样,我没有得到正确的参数。但始终将用户从第一个屏幕重定向,我获得正确的参数,并且可以正确显示“交易完成”消息。
I'm developing an application in rails, my problem is that now with the new design of PayPal's screen, when it redirects the client to my web page to notify him if the transaction has been done correctly, I only get in [:params]
the controller's and the action's name, when I should receive this two parameters: [:payment_status]
and [:payer_status]
.
I'll try to explain it better, sometimes, when the user finishes the checkout on my web page and clicks on the "buy" button, my page redirects him to a PayPal screen that has the description of the products bought in the top of the page, and sometimes to another screen that has the description in the right side of the screen.
After he pays on PayPal, he has the option to return to my page, where he would be notified with a message like "The transaction has been done". The problem is that always that the user is redirected to the second PayPal screen, after he pays and returns to my page, a message like this appears "The transaction could not be finished correctly", because like I said before I don't get the correct parameters. But always that the user is redirected from the first screen, I get the correct parameters and I can show the "transaction completed" message correctly.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论