6 replies [Last post]
venkat-rk@drupal.org's picture
Offline
Joined: 03/19/2008
Juice: 205
Was this information Helpful?

Is it necessary to configure the credit card encryption settings even when testing a payment gateway? I have the credit card debug mode enabled and the test gateway enabled, but there seems to be no way to test.

sime's picture
Offline
Joined: 08/14/2007
Juice: 19
yes but it's easy

Just use your normal files directory to allow uc to make some keys there. Then it will work. You don't need to get into the file system at all.

So:
admin/store/settings/payment/edit/methods
Under "Card number encryption key filepath" I put 'sites/default/files' (your set up may differ)

It's bad for a live site to have this configuration, hence it's better to do it properly if you plan to do real credit cards. But in my case I don't plan to, I'm just using it for testing.

Ryan's picture
Offline
Joined: 08/07/2007
Juice: 15438
Re: yes but it's easy

Yeah, I've done this as well. You can also make a simple tweak to the top of your site's .htaccess file to restrict access to .key files.

briscoe's picture
Offline
Joined: 06/20/2009
Juice: 5
Can't find correct encryption keys

Not sure if this is the right place for this comment or not, but as i'm testing my credit card module I figured I would put it here as well.

I had some issues initially getting they keys directory to work outside of public_html, but was able to resolve with the help of my hosting support team.

So now I don't get the "Directory doesn't exist" error, but when I go to checkout with the correct path in the credit card settings, I get the error "Ubercart cannot find the necessary encryption keys".

The only weird thing is that I see the file in the keys directory. So i'm not sure what else could be causing this issue.

Any help would be appreciated.

Thanks!

harpreet's picture
Offline
Joined: 06/03/2011
Juice: 5
Encryption key file path issue

Hi

Create keys folder in /sites/all/files and give 777 permissions to it.Also you can create keys folder at the root directory and give 777 permissions to it and write down keys in the Card number encryption key file path.

Thanks

hlmtre's picture
Offline
Joined: 06/03/2011
Juice: 3
do not do this

That seems like a horrendous idea, especially for a credit card encryption keys folder.

harpreet's picture
Offline
Joined: 06/03/2011
Juice: 5
what will you sugesst

Please sugesst your views