Jump to content

Custom Gateway Issue


marcusg

Recommended Posts

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

Link to comment
Share on other sites

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
);

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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

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