Page 1 of 1

Encryption of AccountData

Posted: Tue Jan 12, 2010 2:51 pm
by derekz
I'm curious how AccountData is stored in the ac_Payments table. It appears that it's in the EncryptedAccountData field, but it is stored as clear text. I've also noticed that orders that were placed months ago are now encrypted in the EncryptedAccountData field. When this happens I cannot get the information out of the AccountDataDictionary object. I'm working in a development environment.

My questions are why are some Orders encrypted and new orders are clear text? What is causing older Orders to be encrypted?

Once an Order's AccountData is encrypted, what is needed to get the data out?

I'm not processing my orders in AbleCommerce and need to retrieve AccountData if my outside process fails and I need to retrieve the payment information again.

Thanks

Re: Encryption of AccountData

Posted: Tue Jan 12, 2010 5:17 pm
by Shopping Cart Admin
Hello,

If the data is being stored as clear text then the security token needs to be created.
Administration > Configure > Security > Encryption Key

Also confirm you've setup 'Payment Account Data Storage' options on the following page:
Administration > Configure > Security > General

Re: Encryption of AccountData

Posted: Thu Dec 31, 2015 8:57 am
by ImmortalLogic
Working with Able Gold 10, how can I include additional fields from my form in the Account Data for the PurchaseOrderPaymentForm.ascs.cs? The AccountDataEncrypted only seems to store the Purchase Order Number. Do I have to add encryption before I can add new fields? If you need more information, let me know.

In GetPayment() I have:


..... code....

AccountDataDictionary instrumentBuilder = new AccountDataDictionary();
PurchaseOrderNumber.Text = StringHelper.StripHtml(PurchaseOrderNumber.Text);
instrumentBuilder["PurchaseOrderNumber"] = PurchaseOrderNumber.Text;
payment.ReferenceNumber = PurchaseOrderNumber.Text;

BankName.Text = StringHelper.StripHtml(BankName.Text);
instrumentBuilder["BankName"] = BankName.Text;

BankAccount.Text = StringHelper.StripHtml(BankAccount.Text);
instrumentBuilder["BankAccount"] = BankAccount.Text;

BankPhoneNumber.Text = StringHelper.StripHtml(BankPhoneNumber.Text);
instrumentBuilder["BankPhoneNumber"] = BankPhoneNumber.Text;

TaxID.Text = StringHelper.StripHtml(TaxID.Text);
instrumentBuilder["TaxID"] = TaxID.Text;

payment.AccountData = instrumentBuilder.ToString();
return payment;