Jump to content

Callback Problem


mike_fensoft

Recommended Posts

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?

Link to comment
Share on other sites

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?

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