sudheer Posted December 25, 2002 Share Posted December 25, 2002 Hi , I have to integrate CCAvenue in payment modules of my shopping cart. I was successful in integration and made one payment successfully. But the problem is coming with subsequent payments. When I attempted to make subsequent payments, I was shown the error, When went through the code, I found that the orderId that have to be sent as part of CCAvenue *required* parameters is being duplicated. I wanted to synchronise this number with that of 'Order_id' generated in checkout_process.php after the payment is processed. Any work around for this problem? Sudheer Link to comment Share on other sites More sharing options...
kagg Posted December 25, 2002 Share Posted December 25, 2002 If you have made a successfull transaction through CCAvenue, then you must be passing some value as Order_id to CCAvenue gateway.. what is that variable (order_id)?? Kagg Link to comment Share on other sites More sharing options...
sudheer Posted December 25, 2002 Author Share Posted December 25, 2002 The Variable used to pass the orderId is 'orderID' of ccavenue. But my problem is nt that. For each and every transaction, ccavenue requires us to send an unique orderId. In oscommerce that orderId is generated only after making a successful payment. So Now I have to synchronize this orderId( to be sent to ccavenue) with that of the generated one(after making successfulpayment in checkout_process.php by oscommerce). I know this can be done by taking eanother field in orders table of db, But I dont want to change the structure of that. Any help in this would be of great favour. Sudheer Link to comment Share on other sites More sharing options...
kagg Posted December 25, 2002 Share Posted December 25, 2002 Sudheer, try by creating order id as: Order_Id= $customer_id . '-' . date('Ymdhis'); and then pass it to CCAvenue gateway (unique order id). Kagg Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.