Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/xml/14.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python PagSeguro未返回重定向URL_Python_Xml - Fatal编程技术网

Python PagSeguro未返回重定向URL

Python PagSeguro未返回重定向URL,python,xml,Python,Xml,我正在尝试建立PagSeguro(巴西的PayPal),并使用 我制作了一个示例脚本来尝试获取返回的URL,但每次它都不会返回任何URL。(我正在脚本中放入我的真实令牌和电子邮件) 如果我尝试在没有支付url的情况下打印响应,它会打印一个对象,但我也不确定如何解析它。查看是否执行以下操作: print dir(response) # show the names in the module namespace print dir(response.payment_url) # show

我正在尝试建立PagSeguro(巴西的PayPal),并使用

我制作了一个示例脚本来尝试获取返回的URL,但每次它都不会返回任何URL。(我正在脚本中放入我的真实令牌和电子邮件)

如果我尝试在没有
支付url的情况下打印响应,它会打印一个对象,但我也不确定如何解析它。

查看是否执行以下操作:

print dir(response)   # show the names in the module namespace
print dir(response.payment_url)   # show the names in the module namespace

为您提供获取更多信息所需的其他关键字名称。

如果我的答案对您有用,请将其标记为正确。
print dir(response)   # show the names in the module namespace
print dir(response.payment_url)   # show the names in the module namespace