<?php  if (!defined('BASEPATH')) exit('No direct script access allowed');

// ------------------------------------------------------------------------
// Paypal IPN Class
// ------------------------------------------------------------------------
$settings = get_setting();
// Use PayPal on Sandbox or Live
$config['sandbox'] = isset($settings['is_paypal_live']) && $settings['is_paypal_live']==1?FALSE:TRUE; // FALSE for live environment
// https://www.sandbox.paypal.com/businessmanage/preferences/website#
// PayPal Business Email ID


$config['business'] = !empty($settings['paypal_email'])?$settings['paypal_email']:'';
// If (and where) to log ipn to file
$config['paypal_lib_ipn_log_file'] = BASEPATH . 'logs/paypal_ipn.log';
$config['paypal_lib_ipn_log'] = TRUE;

// Where are the buttons located at 
$config['paypal_lib_button_path'] = 'buttons';

// What is the default currency?
$config['paypal_lib_currency_code'] = get_currency('currency_code');

?>
