Commit 435dd3ea authored by Rafael Monnerat's avatar Rafael Monnerat Committed by Xiaowu Zhang

Move PayPal Specific implementation to a new Skin folder

This code is considered as legacy because it is not yet compatible with SecurePayment and it is implemented with "Express Checkout" in mind which is not
suitable for all web sites that intent to use Paypal.
parent 38bb28e0
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="Folder" module="OFS.Folder"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_objects</string> </key>
<value>
<tuple/>
</value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>erp5_commerce_paypal_legacy</string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string></string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
......@@ -60,8 +60,10 @@ if security_parameter_dict is None:\n
security_parameter_dict[\'TOKEN\'] = token\n
security_parameter_dict[\'METHOD\'] = \'GetExpressCheckoutDetails\'\n
\n
response_parameter_dict = context.WebSection_submitPaypalNVPRequest(parameter_dict=security_parameter_dict,\n
nvp_url=context.WebSite_getPaypalUrl(api=\'nvp\', alternative_url=alternative_url))\n
response_parameter_dict = context.WebSection_submitPaypalNVPRequest(\n
parameter_dict=security_parameter_dict,\n
nvp_url=context.WebSite_getPaypalUrl(api=\'nvp\', alternative_url=alternative_url))\n
\n
return response_parameter_dict\n
</string> </value>
</item>
......
......@@ -68,6 +68,7 @@
- anonymous access to Sale Order Module\n
- anonymous access to sale_trade_condition_module\n
"""\n
raise ValueError("Never Run this script!")\n
translateString = context.Base_translateString \n
\n
if (context.getPortalType() != \'Web Site\'):\n
......@@ -100,7 +101,7 @@ context.setContentLayout(None)\n
context.setProperty(\'layout_additional_css\', \'mf54_commerce.css\')\n
\n
# Setup default render method for cart section\n
cart_section.setCustomRenderMethodId(\'SaleOrder_viewAsWeb\')\n
cart_section.setCustomRenderMethodId(\'WebSection_viewShoppingCart\')\n
cart_section.setProperty(\'ecommerce_default_content\', True)\n
cart_section.setProperty(\'ecommerce_product_list\', False)\n
\n
......@@ -115,7 +116,7 @@ register_section.setProperty(\'ecommerce_default_content\', True)\n
register_section.setProperty(\'ecommerce_product_list\', False)\n
\n
# Setup default render method for checkout section\n
checkout_section.setCustomRenderMethodId(\'SaleOrder_viewConfirmAsWeb\')\n
checkout_section.setCustomRenderMethodId(\'SaleOrder_viewAsWeb\')\n
checkout_section.setProperty(\'ecommerce_default_content\', True)\n
checkout_section.setProperty(\'ecommerce_product_list\', False)\n
\n
......
293
\ No newline at end of file
294
\ No newline at end of file
erp5_commerce
erp5_commerce_paypal_legacy
erp5_commerce_widget_library
\ 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