Jump to content

Internal server error on custom gateway module - how to trace the error?


Regia

Recommended Posts

Hi,

I wrote a custom gateway module for a bank virtual POS terminal for credit/debit cards.

Failed payments/cancelling payments work perfectly , but a correct payment results in Internal Server error with no messages in error log or anywhere else.

I enabled the display errors in configuration.php and in the admin panel, but still nothing.

 

I have this code. A correct payment results in invoice marked as PAID and then nothing in the transaction log, so I guess addInvoicePayment works, but not logTransaction.

 

What should I do?

 

if ($response[RESP_CODE] == 00) {
   # Successful
   addInvoicePayment($invoiceid,$transid1,FALSE,FALSE,$gatewaymodule); # Apply Payment to Invoice: invoiceid, transactionid, amount paid, fees, modulename
logTransaction($GATEWAY["name"],'Paid invoice '.$invoiceid.' / Payment ID: '.$transid1,"Successful"); # Save to Gateway Log: name, data array, status
echo '<META HTTP-EQUIV="Refresh" Content="0; URL=https://www.regia.bg/success">';    

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