marcusg Posted July 16, 2008 Share Posted July 16, 2008 I must be doing something wrong... But here it goes. I'm creating a custom credit card gateway so I downloaded the module code and changed the variables as described then changed the first block to the following: # Set the Gateway Variables $GATEWAYMODULE = array( "authcimname" => "mygateway", "authcimvisiblename" => "My Gateway", "authcimtype" => "CC", # Invoices or CC ); The problem is that even though its set to "CC", it is calling the "link" function not the "capture" function as I was told in a response I got on another question: The capture function is used for the first and all recurring payment attempts. You can tell if it's a first payment request or recurring attempt by checking if the CVV variable is present - if it is set, it's the first payment, if it's not, it's a recurring attempt. So I was wondering what am I doing wrong? Thanks 0 Quote Link to comment Share on other sites More sharing options...
marcusg Posted July 16, 2008 Author Share Posted July 16, 2008 I thought I found the issue, but turned out to be a futile attempt... I changed the variable names back to there defaults, as that may cause issues, but apparently not the issue I'm getting currently with CC going to the "link" function. $GATEWAYMODULE = array( "templatename" => "mygateway", "templatevisiblename" => "My Gateway", "templatetype" => "CC", # Invoices or CC ); 0 Quote Link to comment Share on other sites More sharing options...
marcusg Posted July 16, 2008 Author Share Posted July 16, 2008 I printed out the $params variable in the "link" function and the first three parameters look correct: active => 1 type => CC visible => on So this is really baffling me... And I'm sure its something simply that I'm just overlooking. 0 Quote Link to comment Share on other sites More sharing options...
marcusg Posted July 16, 2008 Author Share Posted July 16, 2008 I printed out the $params variable in the "link" function and the first three parameters look correct: active => 1 type => CC visible => on So this is really baffling me... And I'm sure its something simply that I'm just overlooking. Well I was corrected, I changed "templatetype" => "CC" to "templatetype" => "Invoices", and I got the same three initial responses for some reason... I was expected type => CC to change to type => Invoices 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.