Jump to content

New Paygate module is not add transaction when call back !


kudomt

Recommended Posts

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 !

Link to comment
Share on other sites

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 ?

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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 !

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated