Post by Qphoria » Wed Nov 17, 2010 10:53 pm

1. EDIT: catalog/controller/payment/payflowlink.php

2. FIND:

Code: Select all

$this->data['error_warning'] = @$this->error['warning'];
$this->data['error_merchant'] = @$this->error['merchant'];
$this->data['error_partner'] = @$this->error['partner']; 
3. REPLACE WITH:

Code: Select all

$this->data['error_warning'] = (isset($this->error['warning'])) ? $this->error['warning'] : '';
$this->data['error_merchant'] = (isset($this->error['merchant'])) ? $this->error['merchant'] : '';
$this->data['error_partner'] = (isset($this->error['partner'])) ? $this->error['partner'] : ''; 

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by envisionocity » Thu Nov 18, 2010 1:08 am

Qphoria wrote:1. EDIT: catalog/controller/payment/payflowlink.php

2. FIND:

Code: Select all

$this->data['error_warning'] = @$this->error['warning'];
$this->data['error_merchant'] = @$this->error['merchant'];
$this->data['error_partner'] = @$this->error['partner']; 
3. REPLACE WITH:

Code: Select all

$this->data['error_warning'] = (isset($this->error['warning'])) ? $this->error['warning'] : '';
$this->data['error_merchant'] = (isset($this->error['merchant'])) ? $this->error['merchant'] : '';
$this->data['error_partner'] = (isset($this->error['partner'])) ? $this->error['partner'] : ''; 
Thank you for the reply, Qphoria!

Actually, the lines of code are located in admin/controller/payment/payflowlink.php (for the other member who was having the same issue as me).

Having made the adjustments to the code, it fixed the described problem, but then produces this error:

Fatal error: Call to a member function https() on a non-object in /home/myweb/public_html/marketplace/admin/controller/payment/payflowlink.php on line 53

That line is part of the "breadcrumbs" section, which reads:

Code: Select all

  		$this->document->breadcrumbs = array();

   		$this->document->breadcrumbs[] = array(
       		'href'      => $this->url->https('common/home'),
       		'text'      => $this->language->get('text_home'),
      		'separator' => FALSE
   		);
The error is there, regardless of whether I'm starting from http:// or https://

Again, thank you for helping with this!

—Timothy

Newbie

Posts

Joined
Sun Nov 14, 2010 10:50 pm

Post by envisionocity » Thu Nov 18, 2010 3:24 am

After much pounding my head against the keyboard due to my ignorance in PHP programming, this is what I've managed to figure out.

Earlier, I posted the error I was getting after applying Qphoria's recommendations. That code was:

Code: Select all

            $this->document->breadcrumbs = array();

             $this->document->breadcrumbs[] = array(
                 'href'      => $this->url->https('common/home'),
                 'text'      => $this->language->get('text_home'),
                'separator' => FALSE
             );
After examining the PayPal Pro file, there was some easily identifiable differences across this portion of the module. Since it seemed like a "generic" part of the code, I replaced it with:

Original code:

Code: Select all

$this->document->breadcrumbs = array();

   		$this->document->breadcrumbs[] = array(
       		'href'      => $this->url->https('common/home'),
       		'text'      => $this->language->get('text_home'),
      		'separator' => FALSE
   		);

   		$this->document->breadcrumbs[] = array(
       		'href'      => $this->url->https('extension/payment'),
       		'text'      => $this->language->get('text_payment'),
      		'separator' => ' :: '
   		);

   		$this->document->breadcrumbs[] = array(
       		'href'      => $this->url->https('payment/payflowlink'),
       		'text'      => $this->language->get('heading_title'),
      		'separator' => ' :: '
   		);
Borrowed code from the Paypal Pro module:

Code: Select all

$this->document->breadcrumbs = array();

   		$this->document->breadcrumbs[] = array(
       		'href'      => HTTPS_SERVER . 'index.php?route=common/home&token=' . $this->session->data['token'],
       		'text'      => $this->language->get('text_home'),
      		'separator' => FALSE
   		);

   		$this->document->breadcrumbs[] = array(
       		'href'      => HTTPS_SERVER . 'index.php?route=extension/payment&token=' . $this->session->data['token'],
       		'text'      => $this->language->get('text_payment'),
      		'separator' => ' :: '
   		); 
		
		$this->document->breadcrumbs[] = array(
       		'href'      => HTTPS_SERVER . 'index.php?route=payment/payflowlink&token=' . $this->session->data['token'],
       		'text'      => $this->language->get('heading_title'),
      		'separator' => ' :: '
   		);
This at least brings up the module for the Payflow Link now. However, the buttons that would normally Save and Cancel are not hyperlinks, so that even though I can now enter the required information for the Payflow Link credentials, I can't save them, much less Enable the module.

So, that's where I'm at on this so far.

One sidepoint: isn't there someplace that I can just place the credentials directly for now (and enable the module), so I can at least move on to the customer part of the process and see if that's a broken mess, too, but performing a transaction? I looked through the MySQL database but didn't see any such place.

Thank you for your time and consideration!

—Timothy

Newbie

Posts

Joined
Sun Nov 14, 2010 10:50 pm

Post by DangerousJax » Thu Dec 02, 2010 1:43 am

Hi all,

I updated the PayFlow Payment Module to work with a new store I am creating. Perhaps some others can make use of it. It will now work properly in OpenCart 1.4.9. Please be sure to test before use in a production store.

A Note: There are two links on the order confirmation page that are simply directed to "#". These will have to be changed before they will be useful. Change them in Catalog ->view -> theme ->default -> template -> payment -> paflowlink.tpl

Attachments

both the updated and orig. version


Newbie

Posts

Joined
Thu Dec 02, 2010 1:34 am

Post by DangerousJax » Fri Dec 03, 2010 12:47 am

Hi again,

I added some final touches to the module. For customers who don't know what their CSC number is, there is now a link that will pop up a help box to explain what it is. Basic images are included, but feel free to change them if you like.

Cheers,
Jax

Attachments

with simple javascript popup


Newbie

Posts

Joined
Thu Dec 02, 2010 1:34 am

Post by mandamexico » Sun Apr 10, 2011 2:43 am

Testing working on 1.4.9.3

Thanks guys! Was waiting for a module to use payflow link.

My Extensions

OpenCart Developer (OCD) Tools

Donate - If I ever helped you.


User avatar
Active Member

Posts

Joined
Mon Jun 29, 2009 10:14 am
Location - Los Angeles, CA

Post by mandamexico » Thu Aug 11, 2011 8:10 am

Upgraded site to 1.5.1.1

Does anyone know or have tested this module to work before I implement this?
If not I will write back with what I find.

Cheers!

My Extensions

OpenCart Developer (OCD) Tools

Donate - If I ever helped you.


User avatar
Active Member

Posts

Joined
Mon Jun 29, 2009 10:14 am
Location - Los Angeles, CA

Post by mandamexico » Thu Aug 18, 2011 11:54 pm

This gateway is not compatible with 1.5.1.1 (latest OC as of this point).

You install all the files via ftp to the corresponding directories and go to your admin payments panel. Once you select install it seems everything is okay until you click on "edit" to input your details. The page is blank with the following at the top of the page:


Fatal error: Cannot access private property Document::$title in /home/content/14/8244614/html/admin/controller/payment/payflowlink.php on line 8

Does anybody know a fix around this? It seems that there is a big difference in how 1.4.x and 1.5.x is structured. This payment module worked perfectly on 1.4.x

If anybody finds anything please let me know asap, thanks!

- Christian

My Extensions

OpenCart Developer (OCD) Tools

Donate - If I ever helped you.


User avatar
Active Member

Posts

Joined
Mon Jun 29, 2009 10:14 am
Location - Los Angeles, CA

Post by mandamexico » Sat Feb 18, 2012 1:17 pm

*EDITED* on 3/23/12

Updated this payment module for the new 1.5.2.1 visuals and layout as the previous files were not compatible and are only for 1.4.9.x versions of OpenCart.

NEW THREAD HERE http://forum.opencart.com/viewtopic.php?f=119&t=56934

My Extensions

OpenCart Developer (OCD) Tools

Donate - If I ever helped you.


User avatar
Active Member

Posts

Joined
Mon Jun 29, 2009 10:14 am
Location - Los Angeles, CA
Who is online

Users browsing this forum: No registered users and 3 guests