<?xml version="1.0"?>
<!--
/**
 * Magento
 *
 * NOTICE OF LICENSE
 *
 * This source file is subject to the Academic Free License (AFL 3.0)
 * that is bundled with this package in the file LICENSE_AFL.txt.
 * It is also available through the world-wide-web at this URL:
 * http://opensource.org/licenses/afl-3.0.php
 * If you did not receive a copy of the license and are unable to
 * obtain it through the world-wide-web, please send an email
 * to license@magento.com so we can send you a copy immediately.
 *
 * DISCLAIMER
 *
 * Do not edit or add to this file if you wish to upgrade Magento to newer
 * versions in the future. If you wish to customize Magento for your
 * needs please refer to http://www.magento.com for more information.
 *
 * @category    Mage
 * @package     Mage_Paypal
 * @copyright   Copyright (c) 2006-2017 X.commerce, Inc. and affiliates (http://www.magento.com)
 * @license     http://opensource.org/licenses/afl-3.0.php  Academic Free License (AFL 3.0)
 */
-->
<config>
    <modules>
        <Mage_Paypal>
            <version>1.6.0.6</version>
        </Mage_Paypal>
    </modules>
    <global>
        <events>
            <sales_html_txn_id>
                <observers>
                    <paypal_transaction_html>
                        <class>paypal/observer</class>
                        <method>observeHtmlTransactionId</method>
                    </paypal_transaction_html>
                </observers>
            </sales_html_txn_id>
        </events>
        <models>
            <paypal>
                <class>Mage_Paypal_Model</class>
                <resourceModel>paypal_resource</resourceModel>
            </paypal>
            <paypal_resource>
                <class>Mage_Paypal_Model_Resource</class>
                <deprecatedNode>paypal_mysql4</deprecatedNode>
                <entities>
                    <api_debug>
                        <table>paypal_api_debug</table>
                    </api_debug>
                    <settlement_report>
                        <table>paypal_settlement_report</table>
                    </settlement_report>
                    <settlement_report_row>
                        <table>paypal_settlement_report_row</table>
                    </settlement_report_row>
                    <cert>
                        <table>paypal_cert</table>
                    </cert>
                    <payment_transaction>
                        <table>paypal_payment_transaction</table>
                    </payment_transaction>
                </entities>
            </paypal_resource>
        </models>
        <resources>
            <paypal_setup>
                <setup>
                    <module>Mage_Paypal</module>
                    <class>Mage_Paypal_Model_Resource_Setup</class>
                </setup>
            </paypal_setup>
        </resources>
        <blocks>
            <paypal>
                <class>Mage_Paypal_Block</class>
            </paypal>
        </blocks>
        <sales>
            <order>
                <statuses>
                    <pending_paypal translate="label">
                        <label>Pending PayPal</label>
                    </pending_paypal>
                </statuses>
            </order>
        </sales>
        <payment>
            <cc>
                <types>
                    <SM translate="name">
                        <code>SM</code>
                        <name>Switch/Maestro</name>
                        <order>60</order>
                    </SM>
                    <SO translate="name">
                        <code>SO</code>
                        <name>Solo</name>
                        <order>61</order>
                    </SO>
                </types>
            </cc>
        </payment>
        <payment>
            <groups>
                <paypal>PayPal</paypal>
            </groups>
        </payment>
    </global>
    <frontend>
        <secure_url>
            <paypal_express>/paypal/express</paypal_express>
            <paypal_standard>/paypal/standard</paypal_standard>
            <paypal_ipn>/paypal/ipn</paypal_ipn>
        </secure_url>
        <routers>
            <paypal>
                <use>standard</use>
                <args>
                    <module>Mage_Paypal</module>
                    <frontName>paypal</frontName>
                </args>
            </paypal>
        </routers>
        <translate>
            <modules>
                <Mage_Paypal>
                    <files>
                        <default>Mage_Paypal.csv</default>
                    </files>
                </Mage_Paypal>
            </modules>
        </translate>
        <layout>
            <updates>
                <paypal>
                    <file>paypal.xml</file>
                </paypal>
                <bml>
                    <file>bml.xml</file>
                </bml>
            </updates>
        </layout>
        <secure_url>
            <paypal_express_callbackshippingoptions>paypal/express/callbackshippingoptions</paypal_express_callbackshippingoptions>
        </secure_url>
        <events>
            <checkout_submit_all_after>
                <observers>
                    <hss_save_order_after_submit>
                        <class>paypal/observer</class>
                        <method>saveOrderAfterSubmit</method>
                    </hss_save_order_after_submit>
                </observers>
            </checkout_submit_all_after>
            <controller_action_postdispatch_checkout_onepage_saveorder>
                <observers>
                    <hss_save_order_onepage>
                        <class>paypal/observer</class>
                        <method>setResponseAfterSaveOrder</method>
                    </hss_save_order_onepage>
                </observers>
            </controller_action_postdispatch_checkout_onepage_saveorder>
        </events>
    </frontend>
    <adminhtml>
        <events>
            <adminhtml_init_system_config>
                <observers>
                    <paypal>
                        <class>paypal/observer</class>
                        <method>loadCountryDependentSolutionsConfig</method>
                    </paypal>
                </observers>
            </adminhtml_init_system_config>
        </events>
        <translate>
            <modules>
                <Mage_Paypal>
                    <files>
                        <default>Mage_Paypal.csv</default>
                    </files>
                </Mage_Paypal>
            </modules>
        </translate>
    </adminhtml>
    <default>
        <paypal>
            <bncode>Magento_Cart_Community</bncode>
            <style>
                <logo>nowAccepting_150x60</logo>
            </style>
            <wpp>
                <api_password backend_model="adminhtml/system_config_backend_encrypted"/>
                <api_signature backend_model="adminhtml/system_config_backend_encrypted"/>
                <api_username backend_model="adminhtml/system_config_backend_encrypted"/>
                <button_flavor>dynamic</button_flavor>
            </wpp>
            <wpuk>
                <user backend_model="adminhtml/system_config_backend_encrypted"/>
                <pwd backend_model="adminhtml/system_config_backend_encrypted"/>
            </wpuk>
            <fetch_reports>
                <ftp_login backend_model="adminhtml/system_config_backend_encrypted"/>
                <ftp_password backend_model="adminhtml/system_config_backend_encrypted"/>
                <schedule>1</schedule>
                <time>00,00,00</time>
            </fetch_reports>
        </paypal>
        <payment>
            <paypal_express>
                <model>paypal/express</model>
                <title>PayPal Express Checkout</title>
                <payment_action>Authorization</payment_action>
                <solution_type>Mark</solution_type>
                <line_items_enabled>1</line_items_enabled>
                <visible_on_cart>1</visible_on_cart>
                <visible_on_product>1</visible_on_product>
                <allow_ba_signup>never</allow_ba_signup>
                <group>paypal</group>
                <authorization_honor_period>3</authorization_honor_period>
                <order_valid_period>29</order_valid_period>
                <child_authorization_number>1</child_authorization_number>
                <verify_peer>1</verify_peer>
                <skip_order_review_step>1</skip_order_review_step>
            </paypal_express>
            <paypal_express_bml>
                <model>paypal/bml</model>
                <title>Paypal Credit</title>
                <group>paypal</group>
            </paypal_express_bml>
            <paypal_direct>
                <model>paypal/direct</model>
                <title>PayPal Payments Pro</title>
                <payment_action>Authorization</payment_action>
                <cctypes>VI,MC</cctypes>
                <useccv>1</useccv>
                <group>paypal</group>
                <verify_peer>1</verify_peer>
            </paypal_direct>
            <paypal_standard>
                <model>paypal/standard</model>
                <title>PayPal Website Payments Standard</title>
                <payment_action>Sale</payment_action>
                <line_items_enabled>1</line_items_enabled>
                <group>paypal</group>
                <verify_peer>1</verify_peer>
            </paypal_standard>
            <paypaluk_express>
                <title>PayPal Express Checkout Payflow Edition</title>
                <payment_action>Authorization</payment_action>
                <line_items_enabled>1</line_items_enabled>
                <visible_on_cart>1</visible_on_cart>
                <visible_on_product>1</visible_on_product>
                <group>paypal</group>
                <verify_peer>1</verify_peer>
            </paypaluk_express>
            <paypaluk_direct>
                <title>PayPal Payments Pro Payflow Edition</title>
                <payment_action>Authorization</payment_action>
                <cctypes>VI,MC,AE</cctypes>
                <useccv>1</useccv>
                <group>paypal</group>
                <verify_peer>1</verify_peer>
            </paypaluk_direct>
            <verisign>
                <model>paypal/payflowpro</model>
                <title>Payflow Pro</title>
                <payment_action>Authorization</payment_action>
                <cctypes>AE,VI</cctypes>
                <useccv>1</useccv>
                <tender>C</tender>
                <verbosity>MEDIUM</verbosity>
                <user backend_model="adminhtml/system_config_backend_encrypted"/>
                <pwd backend_model="adminhtml/system_config_backend_encrypted"/>
                <group>paypal</group>
                <verify_peer>1</verify_peer>
            </verisign>
            <paypal_billing_agreement>
                <active>1</active>
                <allow_billing_agreement_wizard>1</allow_billing_agreement_wizard>
                <model>paypal/method_agreement</model>
                <title>PayPal Billing Agreement</title>
                <group>paypal</group>
                <verify_peer>1</verify_peer>
            </paypal_billing_agreement>
            <payflow_link>
                <model>paypal/payflowlink</model>
                <payment_action>Authorization</payment_action>
                <verbosity>HIGH</verbosity>
                <pwd backend_model="adminhtml/system_config_backend_encrypted"/>
                <group>paypal</group>
                <title>Credit Card</title>
                <csc_required>1</csc_required>
                <csc_editable>1</csc_editable>
                <url_method>GET</url_method>
                <email_confirmation>0</email_confirmation>
                <verify_peer>1</verify_peer>
                <mobile_optimized>0</mobile_optimized>
            </payflow_link>
            <payflow_advanced>
                <model>paypal/payflowadvanced</model>
                <payment_action>Authorization</payment_action>
                <verbosity>HIGH</verbosity>
                <pwd backend_model="adminhtml/system_config_backend_encrypted"/>
                <group>paypal</group>
                <title>Credit Card</title>
                <partner>PayPal</partner>
                <vendor>PayPal</vendor>
                <user>PayPal</user>
                <csc_required>1</csc_required>
                <csc_editable>1</csc_editable>
                <url_method>GET</url_method>
                <email_confirmation>0</email_confirmation>
                <verify_peer>1</verify_peer>
                <mobile_optimized>0</mobile_optimized>
            </payflow_advanced>
            <hosted_pro>
                <model>paypal/hostedpro</model>
                <title>Payment by cards or by PayPal account</title>
                <payment_action>Authorization</payment_action>
                <group>paypal</group>
                <display_ec>0</display_ec>
                <verify_peer>1</verify_peer>
                <mobile_optimized>0</mobile_optimized>
            </hosted_pro>
        </payment>
    </default>
    <crontab>
        <jobs>
            <paypal_fetch_settlement_reports>
                <run>
                    <model>paypal/observer::fetchReports</model>
                </run>
            </paypal_fetch_settlement_reports>
        </jobs>
    </crontab>
    <admin>
        <routers>
            <adminhtml>
                <args>
                    <modules>
                        <Mage_Paypal before="Mage_Adminhtml">Mage_Paypal_Adminhtml</Mage_Paypal>
                    </modules>
                </args>
            </adminhtml>
        </routers>
    </admin>
</config>
