osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 

installing GPG contrib

This is a discussion on installing GPG contrib within the osCommerce 2.2 Modification Help forums, part of the osCommerce 2.2 Forums category; Hello, I am trying to install the GPG contrib to encryt credit card numbers for offline processing. OK so I ...


Go Back   osCommerce and osCMax shopping cart software forums > osCommerce 2.2 Forums > osCommerce 2.2 Modification Help

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Closed Thread

 

LinkBack Thread Tools
  #1  
Old 05-09-2004, 10:41 PM
New Member
 
Join Date: May 2004
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
kerrydax
Default installing GPG contrib

Hello,
I am trying to install the GPG contrib to encryt credit card numbers for offline processing.
OK so I have generated the keys using CPanel and editied the ccgpg.php file to point to the public key and the temp directory I made (with write permissions).

But my question is, where do I put the ccgpg.php files so it is recognised by oscommerce? In the main directory or in the payment modules directory? I have tried both to no avail. What module to I "turn on" in the admin section to enable GPG?

The instructions that come with the contrib are a little vague.
Thanks in advance.
Kerry
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #2  
Old 05-10-2004, 10:14 AM
jpf's Avatar
jpf jpf is offline
Moderator

 
Join Date: Sep 2003
Location: Manitoba, Canada
Posts: 1,568
Thanks: 1
Thanked 84 Times in 71 Posts
Rep Power: 10
jpf is a glorious beacon of lightjpf is a glorious beacon of lightjpf is a glorious beacon of lightjpf is a glorious beacon of lightjpf is a glorious beacon of light
Default

Which One?
GPG Credit Card Encryption
http://www.oscommerce.com/community/contributions,611

GPG Credit Card Encryption 0.94 english
http://www.oscommerce.com/community/contributions,894

Secure Credit Card - GPG
http://www.oscommerce.com/community/contributions,2013
__________________
JPF - osCMax Fourm Moderator
Try out our osCMax at: Live Catalog Demo
Limited access Admin: Live Admin Demo
Feel free to add products they way you want and then purchase them -=+=- Sorry nothing will be billed or shipped!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #3  
Old 05-10-2004, 04:15 PM
New Member
 
Join Date: May 2004
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
kerrydax
Default

Hi,
I am trying to install GPG Credit Card Encryption at
http://www.oscommerce.com/community/contributions,611
Cheers,
Kerry
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #4  
Old 05-10-2004, 07:33 PM
michael_s's Avatar
osCMax Developer

 
Join Date: Jul 2002
Location: Phoenix, AZ
Posts: 10,330
Thanks: 68
Thanked 322 Times in 305 Posts
Rep Power: 10
michael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond repute
Default

ccgpg.php goes in /catalog/includes/modules/payment dir.

You should then also REMOVE the default credit card module from that dir (cc.php) to avoid confusion. Then from the admin, enable Credit Card. It will be the GPG module...
__________________
Michael Sasek
osCMax Developer


  • osCMax Templates - Hundreds of premium quality templates. New designs every month!

  • xShop for osCMax - Windows Based osCMax administration. Improved workflow, security, speed and convenience.

  • osCMax Hosting - From basic hosting to High Availability, Load Balanced arrays, the most experienced osCMax host.

  • osCMax Template Tutorial - Learn how to make your own custom templates and how to use the powerful features of the osCMax template system.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #5  
Old 05-11-2004, 06:09 PM
New Member
 
Join Date: May 2004
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
kerrydax
Default

Thanks for your help. I got the module enabled but now I have a different problem. I get all the way through the checkout process until the last step (confirm order). When confirm order is clicked I get a "page cannot be found" error. The URL is https://gravitycomputers.com.au/stor...ut_process.php (and yes, the file exists on the server). It puts a file in the temp directory with the order number and unencrypted credit card number, but that's as far as it goes. There are no error messages. Does anyone have any ideas about what could be going on?

Also, I notice in the contrib zip file, the file modules.php. Am I supposed to put this somewhere on the server?

Thanks for all your help!!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #6  
Old 05-12-2004, 02:58 AM
New Member
 
Join Date: May 2004
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
kerrydax
Default

As far as I can tell (with my very limited scripting knowledge) is that it is having problems with the line
system("export HOME=".$gpghome.";".$gpgpath." --verbose --verbose -r '".$gpgrecipient."' --encrypt -a -z 0 ".$plainTxt." ");

It does get to the stage of writing the card number and order number to a file, but does not get past the above command and does not delete the temp files either! (which are in the lines below the command) Does anyone have any ideas? thanks in advance! Kerry
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #7  
Old 05-12-2004, 10:11 AM
jpf's Avatar
jpf jpf is offline
Moderator

 
Join Date: Sep 2003
Location: Manitoba, Canada
Posts: 1,568
Thanks: 1
Thanked 84 Times in 71 Posts
Rep Power: 10
jpf is a glorious beacon of lightjpf is a glorious beacon of lightjpf is a glorious beacon of lightjpf is a glorious beacon of lightjpf is a glorious beacon of light
Default

Did you set the following?:

$gpghome="/home/useraccount"; //where is your pubring? That dir has to have write access.
$gpgpath="/usr/bin/gpg"; //where is the executable
$gpgrecipient="blib@useraccount.com"; //the key used for encryption


to somthing vaild for your server?

See the included file GPG_Cpanel_setup.txt for more information....
__________________
JPF - osCMax Fourm Moderator
Try out our osCMax at: Live Catalog Demo
Limited access Admin: Live Admin Demo
Feel free to add products they way you want and then purchase them -=+=- Sorry nothing will be billed or shipped!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #8  
Old 05-12-2004, 01:33 PM
michael_s's Avatar
osCMax Developer

 
Join Date: Jul 2002
Location: Phoenix, AZ
Posts: 10,330
Thanks: 68
Thanked 322 Times in 305 Posts
Rep Power: 10
michael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond repute
Default

Also, check your error logs. It should tell you where the script is bombing out if there is a php or permissions problem...
__________________
Michael Sasek
osCMax Developer


  • osCMax Templates - Hundreds of premium quality templates. New designs every month!

  • xShop for osCMax - Windows Based osCMax administration. Improved workflow, security, speed and convenience.

  • osCMax Hosting - From basic hosting to High Availability, Load Balanced arrays, the most experienced osCMax host.

  • osCMax Template Tutorial - Learn how to make your own custom templates and how to use the powerful features of the osCMax template system.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #9  
Old 05-12-2004, 05:43 PM
New Member
 
Join Date: May 2004
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
kerrydax
Default

Thanks for your time..

the $plainTxt variable I have set as "/home/gravity/public_html/store/temp/" same with the $crypted variable. I know these are valid because the script is, in fact, writing a file to the temp directory.
$gpghome I have set to "/home/gravity" I wasn't sure whether to put it as /home/gravity/.gnupg, but I have tried both to no avail.

The $gpgpath="/usr/bin/gpg";
and the $gpgrecipient="Kerry de Vent (Gravity Computers) <sales@gravitycomputers.com.au>"

So I don't see any problems with these variables. The error logs are not showing anything so I am tearing my hair out trying to find the cause of this... I have set the permissions of the .gnupg directory and all the files in it to 777 temporarily (when it is working I will tighten the permissions), also the temp directory is set to 777. Are there any other permissions that need to be set to read/write access? Thanks.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #10  
Old 05-12-2004, 06:33 PM
michael_s's Avatar
osCMax Developer

 
Join Date: Jul 2002
Location: Phoenix, AZ
Posts: 10,330
Thanks: 68
Thanked 322 Times in 305 Posts
Rep Power: 10
michael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond repute
Default

Most likely this is a completely separate issue. Check your configure.php and tweak the paths. If you are using shared ssl, that is most likely the cause. Try adding the full url to your shared ssl directory, and make sure your cookie paths and all other dir paths match...
__________________
Michael Sasek
osCMax Developer


  • osCMax Templates - Hundreds of premium quality templates. New designs every month!

  • xShop for osCMax - Windows Based osCMax administration. Improved workflow, security, speed and convenience.

  • osCMax Hosting - From basic hosting to High Availability, Load Balanced arrays, the most experienced osCMax host.

  • osCMax Template Tutorial - Learn how to make your own custom templates and how to use the powerful features of the osCMax template system.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Closed Thread

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
Linkpoint - Which contrib to use? Please help! giyer osCommerce 2.2 Modification Help 13 02-13-2006 09:14 AM
Anyone he;p with errors installing the gift voucher contrib? obscure osCommerce 2.2 Modification Help 1 10-12-2004 06:56 AM
help with pwa contrib dmiles osCMax v1.7 Discussion 8 05-15-2004 02:50 PM
Ask A Qusetion Contrib?? Kristine osCMax v1.7 Discussion 1 04-11-2004 08:41 PM
What to add Contrib for contact us page Kristine osCMax v1.7 Discussion 2 04-08-2004 01:31 PM


All times are GMT -8. The time now is 05:31 PM.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO
http://www.oscmax.com/forums/
Copyright 2008 osCMax