made some progress with modifying the current paypal payment to suite my paygate Setcom.
If anyone is interested in how post questions here.
i basically did most of the work in the /catalog/extension/payment/paypal.php file
........
function getActionUrl() {
if (!$this->config->get('paypal_test')) {
return 'https://www.setcom.com/secure/';
// return 'https://www.paypal.com/cgi-bin/webscr';
} else {
return 'https://www.sandbox.paypal.com/cgi-bin/webscr';
}
}
function fields() {
$currency_data = explode(',', $this->config->get('paypal_currency'));
if (in_array($this->currency->getCode(), $currency_data)) {
$currency = $this->currency->getCode();
} else {
$currency = $this->config->get('config_currency');
}
$ouput = '' . "\n";
$ouput .= '' . "\n";
$ouput .= '' . "\n";
$count = "";
foreach ($this->cart->getProducts() as $product) {
$ouput .= '' . "\n";
$ouput .= '' . "\n";
$ouput .= '' . "\n";
$ouput .= '' . "\n";
if(!isset($count)){ $count = 0 ; }
$count++;
}
$ouput .= '' . "\n";
$ouput .= 'customer->getFirstName().'">' . "\n";
$ouput .= 'customer->getLastName().'">' . "\n";
$ouput .= 'customer->getEmail().'">' . "\n";
$ouput .= 'customer->getTelephone().'">' . "\n";
return $ouput;
}
........................