使用 Python 与 RBS WorldPay 托管支付页面(XML 重定向)集成
有谁有使用 Python 与 RBS WorldPay 集成的示例代码?具体将 XML 订单发布到 WorldPay
Does anyone have any example code for integrating with RBS WorldPay using Python? Specifically posting the XML order to WorldPay
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这是带有基本身份验证的 HTTP POST。基本身份验证在官方使用 urllib2 HOWTO 获取互联网资源中进行了描述。因此,如果 XML 是您要发送的 XML,URL 是您要发布到的 URL,MERCHANT_CODE 和 PASSWORD 是不言自明的,则可以执行以下操作:
It's an HTTP POST with Basic Authentication. Basic Authentication is described in the official Fetch Internet Resources Using urllib2 HOWTO. So, where XML is the XML you're sending, URL is the URL you're posting to, and MERCHANT_CODE and PASSWORD are self explanatory, the following works: