• Welcome to KonaKart Community Forum. Please login or sign up.
 

Insert order sample problem

Started by AndreyG80, January 12, 2009, 05:51:34 pm

Previous topic - Next topic

AndreyG80

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!

trevor

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 ?

AndreyG80

Yes, that's right, ccNumber is persisted in Order. Now I see, thanks.