I'm having difficulties with my callback routine which seem to be connected with the gateway module name. The gateway module is securetrading.php and the function names therein begin securetrading_ That all seems to work OK. The callback script is also called securetrading.php but is in the callback subdirectory.
In the callback script, I've defined a constant "K_GATEWAY_MODULE" as "securetrading" The script starts OK but, when I execute $GATEWAY = getGatewayVariables( K_GATEWAY_MODULE ); it silently ends. I tried passing "securetrading.php" to getGatewayVariables but that just caused it to print out "Gateway Module 'securetradingphp' is Missing" before ending the script. Nothing is returned from getGatewayVariables.
I tried skipping that step and going straight to the addInvoicePayment using "securetrading" as the fifth parameter. Interestingly, it did apply the payment to the invoice but then it silently ended the script.
Can you tell me what's going wrong?
In the callback script, I've defined a constant "K_GATEWAY_MODULE" as "securetrading" The script starts OK but, when I execute $GATEWAY = getGatewayVariables( K_GATEWAY_MODULE ); it silently ends. I tried passing "securetrading.php" to getGatewayVariables but that just caused it to print out "Gateway Module 'securetradingphp' is Missing" before ending the script. Nothing is returned from getGatewayVariables.
I tried skipping that step and going straight to the addInvoicePayment using "securetrading" as the fifth parameter. Interestingly, it did apply the payment to the invoice but then it silently ended the script.
Can you tell me what's going wrong?