Credit Card Encryption/Decryption

For general questions and discussions specific to the AbleCommerce 7.0 Asp.Net product.
Post Reply
john.strez
Ensign (ENS)
Ensign (ENS)
Posts: 6
Joined: Mon Oct 20, 2008 9:50 am

Credit Card Encryption/Decryption

Post by john.strez » Mon Oct 20, 2008 10:11 am

Hi,

I am writing a plug in that uses order information in the store database. I want to take the encrypted credit card information and decrypt so it will be returned to plain text. I am wondering what encryption you use for the credit card info.

thanks
jstrzempa@web2market.com
Web 2 Market
708-653-3100
AbleCommerce .net development and hosting available now
http://www.web2market.com
Image

User avatar
mazhar
Master Yoda
Master Yoda
Posts: 5084
Joined: Wed Jul 09, 2008 8:21 am
Contact:

Re: Credit Card Encryption/Decryption

Post by mazhar » Tue Oct 21, 2008 12:27 pm

You can use the account data dictionary to get the card information from the payment as bellow

Code: Select all

AccountDataDictionary accountData = new AccountDataDictionary(payment.AccountData);
NameLabel.Text = accountData["AccountName"].ToString();

john.strez
Ensign (ENS)
Ensign (ENS)
Posts: 6
Joined: Mon Oct 20, 2008 9:50 am

Re: Credit Card Encryption/Decryption

Post by john.strez » Mon Nov 10, 2008 1:25 pm

Thank you. I have a couple of other questions.

First, how am I connecting the Payment class with the current store. I've added the name of the store into "AccountName" and it says that key isn't in there. Do I have to use Token or will it work without it? Also, what is the account name that I am looking for? I tried the name of the store.

thanks
jstrzempa@web2market.com
Web 2 Market
708-653-3100
AbleCommerce .net development and hosting available now
http://www.web2market.com
Image

john.strez
Ensign (ENS)
Ensign (ENS)
Posts: 6
Joined: Mon Oct 20, 2008 9:50 am

Re: Credit Card Encryption/Decryption

Post by john.strez » Tue Nov 11, 2008 10:20 pm

Figured it out, thanks
jstrzempa@web2market.com
Web 2 Market
708-653-3100
AbleCommerce .net development and hosting available now
http://www.web2market.com
Image

Post Reply