Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

PayflowPro and MS2


infield

Recommended Posts

Hi,

 

I am trying to get Payflow Pro working with osCommerce 2 MS2.

 

I have installed PayflowPro_FIX-1.1 and gone through all the config steps. It shows up great in the backend, and it seems to configure fine. The ordering process works great, but I get a red "Credit Card Error!" with no details. I am trying to install on a FreeBSD VPS, I have installed and tested the Payflow SDK, and it looks like it's working fine.

 

1) Has any one successfully used Payflow Pro with MS2?

2) Did PayflowPro_FIX-1.1 require any changes?

3) How can I get more detailed error reports on the payflow transaction?

 

This is my first attempt at using a payment processing so it is very possible that I am missing something stupid simple. Any tips or recommendation would be appreciated.

 

Thanks,

-marc

Link to comment
Share on other sites

I have made some progress. I had the PayflowPro Executable point to the library (libpfpro.so) instead of (pfpro). It's still not working, but I am now getting an error message.

 

Credit Card Error!! User authentication failed

Link to comment
Share on other sites

Update.I got it running.

 

I went to the command line and looked at the direct output form the pfpro command. Which gave me the same error "User authentication failed". Then after checking things out in the PayFlow manager it turns out I was given the wrong password. There are two passwords one for the payflow manager and one for payflow itself. After changing it, everything works fine with the test account.

Link to comment
Share on other sites

I also am trying to get Payflow Pro installed on MS2. But when I attempt to install the module from the modules page, i get a fatal error:

 

Fatal error: Cannot redeclare class payflowpro in /home/woodbadg/public_html/shop/includes/modules/payment/payflowpro.php on line 12

 

Any ideas?

Link to comment
Share on other sites

Hi.

 

Let's pick up this thread of PayFlow Pro (payflowpro) - verisign's payment gateway - integration contribution.

 

Joe Olson wrote this contrib. I can't find any more support from him on this.

 

I emailed Marc yesterday and we can use this thread to post support.

 

Here is my email:

 

I've followed the contrib readme.

 

Except for defining PFPRO_CERT_PATH.  Don't know how.

 

Also, have moved the SDK files to my server freebsd home directory and the libpfpro.so to the /usr/lib dir.

 

./test.sh returns:

----------------------------------------------------

***> Performing 'pfpro' binary test transaction.....

 

You will need to change the USER, VENDOR, PARTNER and PASSWORD to your

User, Vendor, Partner and Password as specified when you signed up with

the Payflow Pro service.

 

To change these values, edit the variables USER, VENDOR, PARTNER and

PASSWORD in this file, test.sh.

 

RESULT=0&PNREF=V63A48353540&RESPMSG=Approved&AUTHCODE=319PNI&IAVS=X

 

Done with 'pfpro' binary test transaction...

---------------------------------------------------

 

When testing the site cart checkout, I get...

 

Fatal error: Call to undefined function: pfpro_init() in /Library/Apache2/htdocs/~domain.com/catalog/includes/modules/payment/payflowpro.php on line 169

 

which is attributed to:

 

function before_process() {

      global $HTTP_POST_VARS,$order;

      //include(DIR_WS_FUNCTIONS . 'php_pfpro.php');

      pfpro_init();

      $transaction = array(USER  => trim(MODULE_PAYMENT_PAYFLOWPRO_USER),

                    VENDOR => trim(MODULE_PAYMENT_PAYFLOWPRO_VENDOR),

                    PARTNER => trim(MODULE_PAYMENT_PAYFLOWPRO_PARTNER),

                    PWD        => trim(MODULE_PAYMENT_PAYFLOWPRO_PWD),

                    TRXTYPE    => trim(MODULE_PAYMENT_PAYFLOWPRO_TRXTYPE),

                    TENDER    => trim(MODULE_PAYMENT_PAYFLOWPRO_TENDER),

                    AMT        => $HTTP_POST_VARS['AMT'],

                    ACCT      => $HTTP_POST_VARS['cc_number'],

                    EXPDATE    => $HTTP_POST_VARS['cc_expires'],

                    FREIGHTAMT    => $HTTP_POST_VARS['FREIGHTAMT'],

                    TAXAMT    => $HTTP_POST_VARS['TAXAMT'],

                    FIRSTNAME    => $HTTP_POST_VARS['FIRSTNAME'],

                    LASTNAME    => $HTTP_POST_VARS['LASTNAME'],

                    STREET    => $HTTP_POST_VARS['STREET'],

                    CITY    => $HTTP_POST_VARS['CITY'],

                    STATE    => $HTTP_POST_VARS['STATE'],

                    ZIP    => $HTTP_POST_VARS['ZIP'],

                    COUNTRY    => $HTTP_POST_VARS['COUNTRY'],

                    EMAIL    => $HTTP_POST_VARS['EMAIL'],

                    SHIPTOFIRSTNAME    => $HTTP_POST_VARS['SHIPTOFIRSTNAME'],

                    SHIPTOLASTNAME    => $HTTP_POST_VARS['SHIPTOLASTNAME'],

                    SHIPTOSTREET    => $HTTP_POST_VARS['SHIPTOSTREET'],

                    SHIPTOCITY    => $HTTP_POST_VARS['SHIPTOCITY'],

                    SHIPTOSTATE    => $HTTP_POST_VARS['SHIPTOSTATE'],

                    SHIPTOZIP    => $HTTP_POST_VARS['SHIPTOZIP'],

                    CSC        => $HTTP_POST_VARS['CSC']

                    );

 

        $response = pfpro_process($transaction);

        if (!$response||$response[RESULT]!=0) {

                tep_redirect(tep_href_link(FILENAME_CHECKOUT_PAYMENT, 'error_message=' . urlencode(MODULE_PAYMENT_PAYFLOWPRO_TEXT_ERROR.' '.$response[RESPMSG]), 'SSL', true, false));

        }

 

    }

 

Has anyone edited this contrib to make it working or better documented? Is there a way to get a copy of these edits?

 

Thanks for any support.

 

BlueBalance

Link to comment
Share on other sites

First, these are the available contributions.

 

I have gateway "PayFlow Pro" from verisign. Which contributions to I need?

 

Verisign Payflow Link w/ CSC validation

Credit Modules

2.2-CVS

02/11/2003

 

Verisign PayFlow Pro w/CSC new checkout

Credit Modules

2.2-CVS

02/10/2003

 

Verisign PayFlow Link w/CSC new checkout process

Payment Modules

2.2-CVS

02/10/2003

 

Payflow Link Pro (with optional CSC)

Payment Modules

2.2-CVS

06/19/2002

 

Verisign PayFlowLink

Payment Modules

2.2-CVS

02/19/2002

Link to comment
Share on other sites

  • 1 year later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...