KonaKart Community Forum

Installation / Configuration => Programming of KonaKart => Topic started by: AndreyG80 on January 12, 2009, 05:51:34 pm

Title: Insert order sample problem
Post by: AndreyG80 on January 12, 2009, 05:51:34 pm
Hi, all!
I used InsertOrder sample with subtle changes - I used authorize.net module instead of the first module in array. Also I hardcoded ccNumber in payment details and order itself. Saving order with attached payment details went fine. But calling getOrder(orderId) right after  orderId=saveOrder(order) returns order with paymentDetails == null.
If i get paymentDetails via kkEng.getPaymentDetails() i get paymentDetails, but ccNumber is null.
What am I doing wrong? Thanks!
Title: Re: Insert order sample problem
Post by: trevor on January 12, 2009, 06:12:27 pm
The payment details object contains all of the information for actually making the payment through the payment gateway and isn't persisted. When you read back the order, you should get the ccNumber in the ccNumber attribute of the order. Don't you see it there ?
Title: Re: Insert order sample problem
Post by: AndreyG80 on January 12, 2009, 09:15:24 pm
Yes, that's right, ccNumber is persisted in Order. Now I see, thanks.