PayPal 获取令牌
我正在使用 PayPal API 进行快速结帐集成。设置快速结帐后,您将进入带有令牌的页面,如下所示:
https://api-3t.sandbox.paypal.com/nvp
令牌看起来或多或少像这样
ACK=Failure&L_ERRORCODE0=81002&L_SHORTMESSAGE0=Unspecified%20Method&L_LONGMESSAGE0=Method%20Specified%20is%20not%20Supported&L_SEVERITYCODE0=Error
我的问题是:如何通过 PHP 获取此令牌?我不想提前重定向到该页面。在传递某些 post 参数后如何获取远程文件的内容?
I am using the PayPal API for Express Checkout Integration. Upon setting the Express Checkout, one gets to a page with a token, like this page:
https://api-3t.sandbox.paypal.com/nvp
The token looks more or less like that
ACK=Failure&L_ERRORCODE0=81002&L_SHORTMESSAGE0=Unspecified%20Method&L_LONGMESSAGE0=Method%20Specified%20is%20not%20Supported&L_SEVERITYCODE0=Error
My Question is: how do I fetch this toke by means of PHP? I do not want to be redirected to that page beforehand. How do I just fetch the contents of a remote file after passing certain post parameters?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我没有直接的答案,但对于 PayPal,我发现开发者论坛非常适合快速获得答案,特别是当它特定于技术(.NET、PHP 等)
时x.com/docs/DOC-1613" rel="nofollow noreferrer">https://www.x.com/docs/DOC-1613
http://paypaldev.org/
I don't have a direct answer, but for PayPal I found the developer forums really good for getting quick answers, especially when its specific to technology (.NET, PHP, etc.)
https://www.x.com/docs/DOC-1613
http://paypaldev.org/