API Questions on Kentico API.
Version 6.x > API > Ecommerce Module - PaymentGatewayCustomData View modes: 
User avatar
Member
Member
seanbun - 3/19/2013 12:30:56 AM
   
Ecommerce Module - PaymentGatewayCustomData
I use below method to store cc details temporary until tranction is complete. I just wonder:

ShoppinhCartInfo.PaymentGatewayCustomData["CustomGatewayCCName"]

1. where does this data stores? which database table?
2. would the data get encryted?

Cheers,
Matt

User avatar
Certified Developer 13
Certified Developer 13
kentico_josefd - 3/19/2013 3:41:46 AM
   
RE:Ecommerce Module - PaymentGatewayCustomData
Hello,

This method does not store the data in the database, only in server memory. It is disposed of after the payment is finished. Since the data is not stored anywhere, it is not encrypted.

Regards,
Josef Dvorak

User avatar
Member
Member
seanbun - 3/19/2013 7:45:05 AM
   
RE:Ecommerce Module - PaymentGatewayCustomData
Excellent.

I am using API to manage the whole transaction process instead of built-in controls. So, what methods I should run to make sure the credit card data is disposed?

User avatar
Certified Developer 13
Certified Developer 13
kentico_josefd - 3/19/2013 10:00:47 AM
   
RE:Ecommerce Module - PaymentGatewayCustomData
Hello,

You can use one of following methods. Setting the PaymentGatewayCustomData to null will make the data inaccessible and signal the garbage collector to remove it:
cartObj.PaymentGatewayCustomData = null;


Or you can use the following API methods:
ShoppingCartInfoProvider.ClearShoppingCartPrivateData(cartObj);
ShoppingCartInfoProvider.SetShoppingCartInfo(cartObj);

Let me know if you need further help.

Regards,
Josef Dvorak