<?xml version="1.0"?>
<ZopeData>
  <record id="1" aka="AAAAAAAAAAE=">
    <pickle>
      <global name="PythonScript" module="Products.PythonScripts.PythonScript"/>
    </pickle>
    <pickle>
      <dictionary>
        <item>
            <key> <string>Script_magic</string> </key>
            <value> <int>3</int> </value>
        </item>
        <item>
            <key> <string>_bind_names</string> </key>
            <value>
              <object>
                <klass>
                  <global name="NameAssignments" module="Shared.DC.Scripts.Bindings"/>
                </klass>
                <tuple/>
                <state>
                  <dictionary>
                    <item>
                        <key> <string>_asgns</string> </key>
                        <value>
                          <dictionary>
                            <item>
                                <key> <string>name_container</string> </key>
                                <value> <string>container</string> </value>
                            </item>
                            <item>
                                <key> <string>name_context</string> </key>
                                <value> <string>context</string> </value>
                            </item>
                            <item>
                                <key> <string>name_m_self</string> </key>
                                <value> <string>script</string> </value>
                            </item>
                            <item>
                                <key> <string>name_subpath</string> </key>
                                <value> <string>traverse_subpath</string> </value>
                            </item>
                          </dictionary>
                        </value>
                    </item>
                  </dictionary>
                </state>
              </object>
            </value>
        </item>
        <item>
            <key> <string>_body</string> </key>
            <value> <string># TODO: Return configured web page in case of system issues.\n
from ZTUtils import make_query\n
portal = context.getPortalObject()\n
\n
transaction_date, transaction_id = payment.PaymentTransaction_getPayzenId()\n
if transaction_id is not None:\n
  message = context.Base_translateString("Payment already registered.")\n
  return context.getWebSiteValue().Base_redirect(keep_items={\'portal_status_message\': message})\n
\n
callback_websection = context.getWebSiteValue().payzen_callback\n
query = make_query(dict(transaction=context.getRelativeUrl()))\n
\n
system_event = context.PaymentTransaction_createPayzenEvent(\n
  title=\'User navigation script for %s\' % context.getTitle()\n
)\n
system_event.generateManualPaymentPage(\n
  vads_url_cancel=\'%s?%s\' % (callback_websection.cancel.absolute_url(), query),\n
  vads_url_error=\'%s?%s\' % (callback_websection.error.absolute_url(), query),\n
  vads_url_referral=\'%s?%s\' % (callback_websection.referral.absolute_url(), query),\n
  vads_url_refused=\'%s?%s\' % (callback_websection.refused.absolute_url(), query),\n
  vads_url_success=\'%s?%s\' % (callback_websection.success.absolute_url(), query),\n
  vads_url_return=\'%s?%s\' % (getattr(callback_websection, \'return\').absolute_url(), query),\n
)\n
\n
return system_event.contentValues(\n
  portal_type="Payzen Event Message")[0].getTextContent()\n
</string> </value>
        </item>
        <item>
            <key> <string>_params</string> </key>
            <value> <string></string> </value>
        </item>
        <item>
            <key> <string>id</string> </key>
            <value> <string>PaymentTransaction_redirectToManualPayzenPayment</string> </value>
        </item>
      </dictionary>
    </pickle>
  </record>
</ZopeData>
