kudomt Posted February 6, 2010 Share Posted February 6, 2010 Hi there ! I'm using GatewayDevKit to create new Paygate module ! But, when callback, the transaction is not add althought i set all status is Successful ! The code Successful to add transaction is : .... $results["status"] = "success"; $invoiceid = $params['invoiceid']; $amount = $params['amount']; # Format: ##.## $transid = "123456";//$_POST["x_trans_id"]; $fee = $_POST["x_fee"]; $invoiceid = checkCbInvoiceID($invoiceid,$GATEWAY["name"]); # Checks invoice ID is a valid invoice number or ends processing checkCbTransID($transid); # Checks transaction number isn't already in the database and ends processing if it does if ($status=="1") { # Successful addInvoicePayment($invoiceid,$transid,$amount,$fee,$gatewaymodule); logTransaction($GATEWAY["name"],$_POST,"Successful"); } else { # Unsuccessful addInvoicePayment($invoiceid,$transid,$amount,$fee,$gatewaymodule); logTransaction($GATEWAY["name"],$_POST,"Successful"); //logTransaction($GATEWAY["name"],$_POST,"Unsuccessful"); //set comment to not do it } addInvoicePayment($invoiceid,$transid,$amount,$fee,$gatewaymodule); logTransaction($GATEWAY["name"],$_POST,"Successful"); So how can i do (how code) to add transaction after callback ? Note : I was upload patgatemodulename.php (rename of template.php file ) to modules\gateways and patgatemodulename.php (rename of callback.php file ) to modules\gateways\callback ! Please help me ! Thank you very much ! 0 Quote Link to comment Share on other sites More sharing options...
kudomt Posted February 6, 2010 Author Share Posted February 6, 2010 And please for me ask : how can i get description of invoiceitem ? I got by $indec=$params['invoiceitems']['description'] or $indec=$params['invoiceitems'][0]['description'] or $indec=$params['invoiceitems']['0']['description'] or $indec=$params['invoiceitems']['description'][0] or $indec=$params['invoiceitems']['description']['0'] like $email = $params['clientdetails']['email'] but it's not work ? 0 Quote Link to comment Share on other sites More sharing options...
kudomt Posted February 6, 2010 Author Share Posted February 6, 2010 Have anyone help me ? 0 Quote Link to comment Share on other sites More sharing options...
kudomt Posted February 8, 2010 Author Share Posted February 8, 2010 Hello ! Please help me ! 0 Quote Link to comment Share on other sites More sharing options...
hajim2000 Posted February 10, 2010 Share Posted February 10, 2010 Hello ! Please help me ! hi, I have the same problem, although I can see the Gateway Transaction Log, the client sends data, the data goes to the bank the bank authorizes the purchase I check the Log Transaction Gateway and the same authorization code from the bank, is in the Gateway Transaction Log but the invoice was unpaid ... that you put in the url to return to the callback? Thanks 0 Quote Link to comment Share on other sites More sharing options...
kudomt Posted February 12, 2010 Author Share Posted February 12, 2010 Why don't have anyone help me ? Please help ! Thank you very much ! 0 Quote Link to comment Share on other sites More sharing options...
hajim2000 Posted February 12, 2010 Share Posted February 12, 2010 Why don't have anyone help me ?Please help ! Thank you very much ! Hi, the successful authorization enters to the gateway log, but does not add to the transaction for the invoice as paid, how mark the invoice paid? 0 Quote Link to comment Share on other sites More sharing options...
kudomt Posted February 13, 2010 Author Share Posted February 13, 2010 hi, I have the same problem, although I can see the Gateway Transaction Log, the client sends data, the data goes to the bank the bank authorizes the purchase I check the Log Transaction Gateway and the same authorization code from the bank, is in the Gateway Transaction Log but the invoice was unpaid ... that you put in the url to return to the callback? Thanks Hi, Can you show your code ? How can you do (code) to have log in Gateway Transaction Log ? Thank you ! 0 Quote Link to comment Share on other sites More sharing options...
kudomt Posted February 13, 2010 Author Share Posted February 13, 2010 Hi, please help ! 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.