mike_fensoft Posted September 16, 2012 Share Posted September 16, 2012 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? 1 Quote Link to comment Share on other sites More sharing options...
mike_fensoft Posted September 22, 2012 Author Share Posted September 22, 2012 I've solved that one. I didn't realise that functions defined in the gateway module were available to the callback routine. Now I have another question. If my gateway detects and input error, it current sends an error message the displays in the iframe where the "3D Secure" form would otherwise be displayed. I'd like it instead to show the error message on the page where credit card details are entered, as it does if an invalid credit card number or a date in the past is entered. I presume I need to POST a parameter or parameters to the creditcard.php script but I don't know what. Can anyone tell me what I need to do? 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.