KonaKart Community Forum

Installation / Configuration => Programming of KonaKart => Topic started by: nickgk on March 21, 2011, 05:26:03 pm

Title: CreditCardIf
Post by: nickgk on March 21, 2011, 05:26:03 pm
Hello,

Page 105 of the KonaKart User Guide has a code example that suggests a way to save encrypted credit card details into the database at checkout using kkAppEng.getEng().setCreditCardDetailsOnOrder(kkAppEng.getSessionId(), order.getId(), cc);

This would require that a CreditCard object be instantiated in a Payment Module Action and there does not appear to be any implementation of the CreditCard() object.  Could anyone clarify this? Many Thanks.

Regards,
Nick
Title: Re: CreditCardIf
Post by: trevor on March 21, 2011, 05:35:08 pm
The implementation is com.konakart.app.CreditCard
Title: Re: CreditCardIf
Post by: nickgk on March 21, 2011, 06:01:51 pm
Wow, that was easy to fix I just added  "import com.konakart.app.CreditCard;". FYI - What threw me off is that it seems com.konakart.app.CreditCard does not show up anywhere in the Javadocs?

THANK YOU!
Title: Re: CreditCardIf
Post by: trevor on March 21, 2011, 06:04:16 pm
It does show up. Take a look at http://www.konakart.com/documentation/javadoc in the Store Front Server Engine Javadoc.
Title: Re: CreditCardIf
Post by: greg on March 21, 2011, 06:11:23 pm
You should find it here:

http://www.konakart.com/javadoc/server/com/konakart/app/CreditCard.html (http://www.konakart.com/javadoc/server/com/konakart/app/CreditCard.html)
Title: Re: CreditCardIf
Post by: nickgk on March 21, 2011, 06:19:37 pm
Indeed, it does show up where you say it does.  :)  However, I should have said that it does not show up in the javadocs in my particular download of version 5.2.