KonaKart Community Forum

Installation / Configuration => Programming of KonaKart => Topic started by: yayizzx on November 06, 2007, 06:36:36 am

Title: insertDigitalDownload
Post by: yayizzx on November 06, 2007, 06:36:36 am
Hello
my code like below
        Class engineClass = Class.forName("com.konakart.app.KKEng");
        eng = (KKEngIf) engineClass.newInstance();
        ......
        eng.insertDigitalDownload(sessionId,new Integer(prodId));
i got the kkexception:
com.konakart.app.KKException: org.apache.torque.TorqueException: java.lang.NullPointerException
        at com.konakart.app.KKEng.insertDigitalDownload(KKEng.java:1782)
what can i do? And how can i get the download link?
thanks
Title: Re: insertDigitalDownload
Post by: julie on November 06, 2007, 07:49:04 am
Hello,

I don't understand what your are trying to achieve. Have you read this http://www.konakart.com/configurationfaq.php#How_can_i_configure_dig_down ?

The code that sets up the digital downloads once the order has been paid,  is in the OrderIntegrationMgr for which you have the source code under examples/com/konakart/bl.

Julie
Title: Re: insertDigitalDownload
Post by: yayizzx on November 07, 2007, 09:32:18 am
Hello,julie
i thougth i got it
thanks