Jump to content

Problem with custom payment gateway that uses iframe so tokenization doesnt work


Recommended Posts



we have problem with custom payment gateway that uses iframe so our

tokenization doesnt work.


We have a custom payment gateway module that uses iframe to pay for

products for the first time. Payment gateway has functions: _capture,

_storeremote, and _remoteinput that basically creates iframe into whmcs

system. Then the callback script is called to inform whmcs system that

payment was successful and then it connects to db and store last 4

digits and token into tblclients table. So for the first payment

everything goes great.


But problem happens when client want again to buy something. Normally

with other (non iframe, when there is no function _remoteinput) gateways

with tokenization client will be asked to type only cvv since last 4

credit card digits and token are stored so he will be charged with

token. But now it always redirect client to iframe to type all the data,

even if token is stored in tblclients.


Also same problem happens with recurring products since they will not be

charged with token.


Similar question i found on forum but unfortunately without answer:




(note: just they use function _link that redirects them to gateway

website and we use function _remoteinput that opens a iframe in whmcs

but logic and problem is the same).


So my question is: Is it possible to use tokenization if we use payment

gateway with iframe? And how to force whmcs system when it sees that we

have token in tblclients (or whatever we need else) to charge with token

and not redirects again to iframe?


Any help is welcome (even ideas how we can make this gateway work with tokenization).


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.

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