Help with VISA and PHP

software development

#1

So, we are from Brasil and we are a store. So now we have our online store (Magento).
We will accept Visa, and they need us to have a WINDOWS SERVER (dedicated), but it’s too expensive.
So we can use Linux and use a Payment Gateway.
Ok.
But they have a anti-block popup.
Because when it’s redirected to Visa, it opens a POPUP and browser blocks it.
So they have an ASP “solution” and we changed it to PHP.
But it doesn’t work anyway!
And VISA says we need to have it, but everyone is having this problem. lol
I will post codes too.
File Redirect.php is the file that redirects to Visa.
If you check this line:
$script .= ’ window.location = “redirecionaCBP.php”’;
This is to open that other file, that should be the solution to be an anti-block popup.
Really, they are crazy, but if you could help me, or some option, I don’t know, anything, it would be great.

Redirect.php:

[quote]<?php

class Campoy_Visanet_Block_Standard_Redirect extends Mage_Core_Block_Abstract
{
protected function _construct()
{
$this->setTemplate(‘visanet/standard/redirect.phtml’);
parent::_construct();
}

protected function _toHtml()
{
$html = ‘’;
$html .= ‘’;
$html .= ‘’;
$html .= $this->getScriptCode();
$html .= ‘’;
$html .= ‘’;
$html .= ‘

’ . $this->__(‘Você será redirecionado para a Visanet em alguns instantes. Se isso não acontecer, clique no botão abaixo.’) . ‘

’;
$html .= ‘

’ . $this->getFormCode() . ‘

’;
$html .= ‘’;

$html .= ‘’;

return $html;
}

private function getFormCode() {
$standard = Mage::getModel(‘visanet/standard’);
$formFields = $standard->getStandardCheckoutFormFields();

$total = $formFields[‘damount’];
$total = number_format($total, 2, ‘.’, ‘’);

if (!Mage::getModel(‘wlpayment/wlpayment’)->saveReg($formFields[‘orderid’], $formFields[‘tid’], $formFields[‘parcelas’], $total, $formFields[‘bandeira’])) {
echo ‘Falha ao gravar transaç$atilde;o.’;
}

$form = ‘’;

foreach ($formFields as $field=>$value) {
$form .= ‘’;
}

$form .= ‘

’;
$form .= ’ .
';
$form .= ‘’;
$form .= ‘

’;
$form .= ‘’;

return($form);
}

private function getScriptCode() {
$script = ‘’;

return($script);
}
}
[/quote]

redirecionaCBP.php:

[quote]

Multitech Informática [/quote]

VISIT MY WEBSITE!