Post by blade » Wed Nov 14, 2007 11:44 pm

OK so ive been messing with Opencart for just over a day now.
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;
  }
........................

Newbie

Posts

Joined
Wed Nov 14, 2007 11:35 pm

Post by majhoul » Thu Nov 15, 2007 10:35 pm

and it's working fine?

Newbie

Posts

Joined
Wed Nov 14, 2007 4:23 am

Post by blade » Thu Nov 15, 2007 10:43 pm

I have had no problems at this point.
if i do run into issues i shall post here

Newbie

Posts

Joined
Wed Nov 14, 2007 11:35 pm
Who is online

Users browsing this forum: No registered users and 3 guests