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">';