Jump to content

Quick questions with custom payment gateway module


jasonk3

Recommended Posts

I am creating a custom module for a new payment gateway that is not initially supported by WHMCS.

 

I am using the GatewayDevKit and just had a couple questions. I could not find any of the specifics in the documentation, so here I am posting.

 

- are all the parameters that are sent to the capture/refund functions already cleaned/etc ? I am assuming so, but just want to be sure.

 

- for the result array that is returned from the functions, are the only required variables that are to be returned are rawdata, status and transid ?

 

- if I add a new function in the module, are there any specific naming conventions that I should avoid? (i.e. modulename_* are reserved for whmcs functions, etc)? just want to be sure.

Link to comment
Share on other sites

also, in the code, $cardissuenum is the CVV2 code correct? also, what is the $cardstart variable referring to (the comment

 

and lastly, the gateway returns a AuthCode and a RefNum. Which one should I store and return in the transid ? AuthCode?

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