
Originally Posted by
icecold
ok I managed to display the nice button ... but when I click the link I got a permission problem ...
Access forbidden!
You don't have permission to access the requested object. It is either read-protected or not readable by the server.
If you think this is a server error, please contact the webmaster.
Error 403
www.store.com
04/06/10 00:22:47
Apache/2.2.3 (Win32) DAV/2 mod_ssl/2.2.3 OpenSSL/0.9.8c mod_autoindex_color PHP/5.1.6
I fixed the problem but now I get a blank page I created a handler, where the class is instantiated and echoed some vars inside the class, but the output is a black screen ...
I draw the button and call the handler using a link
HTML Code:
<div id="ICbutton" class="buttonRow">
<a href="<?php echo zen_href_link('ic_main_handler.php', 'type=ic', 'NONSSL', true, true, true); ?>"><img src="<?php echo MODULE_PAYMENT_IC_BUTTON_IMG; ?>" alt="<?php echo MODULE_PAYMENT_IC_TEXT_BUTTON_ALTTEXT; ?>" /></a>
</div>
Here is my handler's code(I am not sure those requires are needed, tested both ways and same result, blank page):
PHP Code:
/**
* handle International Checkout processing:
*/
if (isset($_GET['type']) && $_GET['type'] == 'ic') {
// this is an ic handler request
// require('includes/application_top.php');
// require(DIR_WS_CLASSES . 'payment.php');
// See if the ic module is enabled.
if (defined('MODULE_PAYMENT_IC_STATUS') && MODULE_PAYMENT_IC_STATUS == 'True') {
$ic_module = 'ic';
// init the payment object
$payment_modules = new ic();
$payment_modules->ic();
//Test class internal vars
echo $payment_modules->test; // Test variable assigned with a value to check output
echo $payment_modules->code;
echo $payment_modules->title;
echo $payment_modules->description;
echo $payment_modules->enabled;
}
}
I even created a $test var inside the class and echoed it in the handler along with some variables, to see if I can get some output but it's not working ...