Commit e2455221 authored by Vincent Desmares's avatar Vincent Desmares

# vincentd

Dont try to create a token if no valid order paramters are generated

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@28193 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 961072c9
...@@ -53,7 +53,10 @@ ...@@ -53,7 +53,10 @@
</item> </item>
<item> <item>
<key> <string>_body</string> </key> <key> <string>_body</string> </key>
<value> <string>response_parameter_dict = context.ERP5Base_submitPaypalNVPRequest(parameter_dict=context.WebSite_getPaypalOrderParameterDict(),\n <value> <string>parameter_dict = context.WebSite_getPaypalOrderParameterDict()\n
if parameter_dict is None:\n
return None\n
response_parameter_dict = context.ERP5Base_submitPaypalNVPRequest(parameter_dict=parameter_dict,\n
nvp_url=context.WebSite_getPaypalUrl(api=\'nvp\', alternative_url=alternative_url))\n nvp_url=context.WebSite_getPaypalUrl(api=\'nvp\', alternative_url=alternative_url))\n
\n \n
if response_parameter_dict is None:\n if response_parameter_dict is None:\n
...@@ -101,8 +104,9 @@ return \'\'\n ...@@ -101,8 +104,9 @@ return \'\'\n
<string>alternative_url</string> <string>alternative_url</string>
<string>_getattr_</string> <string>_getattr_</string>
<string>context</string> <string>context</string>
<string>response_parameter_dict</string> <string>parameter_dict</string>
<string>None</string> <string>None</string>
<string>response_parameter_dict</string>
<string>_getitem_</string> <string>_getitem_</string>
</tuple> </tuple>
</value> </value>
......
145 146
\ No newline at end of file \ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment