Page 1 of 1

Credit Card Encryption/Decryption

Posted: Mon Oct 20, 2008 10:11 am
by john.strez
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

Re: Credit Card Encryption/Decryption

Posted: Tue Oct 21, 2008 12:27 pm
by mazhar
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();

Re: Credit Card Encryption/Decryption

Posted: Mon Nov 10, 2008 1:25 pm
by john.strez
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

Re: Credit Card Encryption/Decryption

Posted: Tue Nov 11, 2008 10:20 pm
by john.strez
Figured it out, thanks