Encryption of AccountData

For general questions and discussions specific to the AbleCommerce 7.0 Asp.Net product.
Post Reply
derekz
Lieutenant, Jr. Grade (LT JG)
Lieutenant, Jr. Grade (LT JG)
Posts: 38
Joined: Mon Nov 03, 2008 3:13 pm

Encryption of AccountData

Post by derekz » Tue Jan 12, 2010 2:51 pm

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

User avatar
Shopping Cart Admin
AbleCommerce Admin
AbleCommerce Admin
Posts: 3055
Joined: Mon Dec 01, 2003 8:41 pm
Location: Vancouver, WA
Contact:

Re: Encryption of AccountData

Post by Shopping Cart Admin » Tue Jan 12, 2010 5:17 pm

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
Thanks for your support

Shopping Cart Guru
AbleCommerce.com
Follow us on Facebook

User avatar
ImmortalLogic
Lieutenant (LT)
Lieutenant (LT)
Posts: 61
Joined: Tue May 11, 2010 9:29 am

Re: Encryption of AccountData

Post by ImmortalLogic » Thu Dec 31, 2015 8:57 am

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;

Post Reply