tcvdveer Posted October 11, 2008 Share Posted October 11, 2008 I have to develop a payment gateway that uses a redirect to the bank and the bank uses a 3d http post validation. Unfortunately there is not much info in this forum, in the wiki and in the pdf's on how to integrate something like that with whmcs. Maybe someone can point me in the right direction... How it will have to work: -a form is send to the bank, containing cc holder name and amount. -user is redirected to the banks site and makes a transaction. -bank sends http post to verify amount -[ok] or [notok] will be send with http post to the bank, confirming or declining the transaction. -bank sends http post message that transaction has succeeded or failed Some questions: -will I be using CC or Invoice? -do I need the callback function, or can I program all in the payment module? -is viewinvoice.php the only script that customers use to make a payment? 0 Quote Link to comment Share on other sites More sharing options...
tcvdveer Posted October 14, 2008 Author Share Posted October 14, 2008 My first impression was that it would not be very hard to create a custom payment gateway, but since there are no replies, I fear it is not an easy task create a custom development with whmcs. 0 Quote Link to comment Share on other sites More sharing options...
Shaun Posted October 14, 2008 Share Posted October 14, 2008 My first impression was that it would not be very hard to create a custom payment gateway, but since there are no replies, I fear it is not an easy task create a custom development with whmcs. You should be able to manage this with a gateway. This will be like the paypal one. You will need to write a form out the post it with javascript. Then parse the data that comes back to update the record. 0 Quote Link to comment Share on other sites More sharing options...
tcvdveer Posted October 15, 2008 Author Share Posted October 15, 2008 Thanks for your reply Shaun. The banks uses a 3d verification method, so not only one post to confirm or decline the transaction. It sends a validation post that has to be replied at, a confirmation post that has to be replied at and subsequent a ok or not ok post to confirm / decline the transaction. The Paypal code with callback function could be handy as an example, but unfortunately everything is encrypted. 0 Quote Link to comment Share on other sites More sharing options...
tcvdveer Posted October 15, 2008 Author Share Posted October 15, 2008 What I did so far: -created a gateway module that stores the transaction details in a new table, creates a form which posts and redirects to the bank. -created a new validation page that validates the post from the bank with the stored table data -created a confirmation page that posts a confirmation to the bank in case the data is correct -created a ok page, in case an ok post is received from the bank, post an addinvoicepayment action to the api.php -created a nok page, in case the transaction is declined by the bank to take a certain action For now the problem is the nok page, what action can I post to the api.php or to another whmcs page to let the customer know that there was a problem with the transaction. There are some examples in the Wiki, but they just describe a few examples and when your code deviates from these examples there is no other source to consult. What I'm missing are well documented pages about what actions / parameters can be used with the whmcs. Normally I would find a solution by looking in to the coding, but since everything is encrypted this can not be done. 0 Quote Link to comment Share on other sites More sharing options...
Shaun Posted October 15, 2008 Share Posted October 15, 2008 What I did so far:-created a gateway module that stores the transaction details in a new table, creates a form which posts and redirects to the bank. -created a new validation page that validates the post from the bank with the stored table data -created a confirmation page that posts a confirmation to the bank in case the data is correct -created a ok page, in case an ok post is received from the bank, post an addinvoicepayment action to the api.php -created a nok page, in case the transaction is declined by the bank to take a certain action For now the problem is the nok page, what action can I post to the api.php or to another whmcs page to let the customer know that there was a problem with the transaction. There are some examples in the Wiki, but they just describe a few examples and when your code deviates from these examples there is no other source to consult. What I'm missing are well documented pages about what actions / parameters can be used with the whmcs. Normally I would find a solution by looking in to the coding, but since everything is encrypted this can not be done. What you could do it create a custom email. Then using the API code call SendEmail and send a WHMCS email letting he customer know that the payment didn't go throught correctly. 0 Quote Link to comment Share on other sites More sharing options...
tcvdveer Posted October 15, 2008 Author Share Posted October 15, 2008 I was thinking about that, but what if the customer doesn't check his e-mail frequently. It would be a nice solution to redirect the customer back to the invoice page and showing the error message there (without using Javascript), so the customer is informed directly and he could make another attempt through the same or through another payment gateway. I was hoping some whmcs action / attribute could trigger that. If not, I would have to create a customer error page with a link to the invoice page and send the e-mail in the way you suggested. 0 Quote Link to comment Share on other sites More sharing options...
Shaun Posted October 16, 2008 Share Posted October 16, 2008 I was thinking about that, but what if the customer doesn't check his e-mail frequently. It would be a nice solution to redirect the customer back to the invoice page and showing the error message there (without using Javascript), so the customer is informed directly and he could make another attempt through the same or through another payment gateway. I was hoping some whmcs action / attribute could trigger that. If not, I would have to create a customer error page with a link to the invoice page and send the e-mail in the way you suggested. I don't think that the paypal does this. You could maybe direct them to another custom whmcs page (see wiki) that states that their payment has failed. 0 Quote Link to comment Share on other sites More sharing options...
tcvdveer Posted October 16, 2008 Author Share Posted October 16, 2008 Maybe not the most ideal solution, but I'll direct the customer back to the invoice page and send an e-mail in case of a failed transaction hoping the unpaid wording is being noticed and the e-mail will be read. 0 Quote Link to comment Share on other sites More sharing options...
ray2005 Posted November 17, 2008 Share Posted November 17, 2008 Hi tcvdveer, I was searching for more info about integrating iDeal advanced as an gateway in WHMCS, but I could not find much info about this. I guess you are developing an module for this in WHMCS. I'm interested in your experience in this. Can you please contact me on ray at fox-hosting.nl? I was nog able to send you an private message in this forum. Hope to hear from you soon. Ray 0 Quote Link to comment Share on other sites More sharing options...
Klangaroo Posted November 18, 2008 Share Posted November 18, 2008 we have an external payment gateway that pulls data out of WHMCS' database and passes it to the bank. Customers who want to pay using credit card have to use our external frontend, they can't do it through WHMCS. We eventually built up this external frontend and it's become our primary frontend, we don't allow customers to use WHMCS at all anymore, we use a robust API to interact with WHMCS discreetly. so what began as a small task ended up developing into a large project. 0 Quote Link to comment Share on other sites More sharing options...
WisTex Posted November 20, 2008 Share Posted November 20, 2008 ...so what began as a small task ended up developing into a large project. Sounds like more than a few projects I have been on. 0 Quote Link to comment Share on other sites More sharing options...
tcvdveer Posted December 7, 2008 Author Share Posted December 7, 2008 I managed to build a few payment gateways (Eurobank, iDeal advanced) using the whmcs api to handle invoices and e-mails through whmcs program. It took a while to figure out the whmcs api, but once I did, I was able to build nice interactions with the new payment gateways. 0 Quote Link to comment Share on other sites More sharing options...
kunc86 Posted December 21, 2008 Share Posted December 21, 2008 can you give me one example of your payment gateways. because in whmcs all script is encrypted. and i want to make payment gateways for my local bank account. 0 Quote Link to comment Share on other sites More sharing options...
tcvdveer Posted December 21, 2008 Author Share Posted December 21, 2008 The payment modules I created are sets of files, so it would not be possible to post a small example here. Also I'm not able to simply share those files, since my customers have paid for them. But to point you in the right direction: Have a look at the available (unencrypted) anz payment module contribution, download and study the gateway module development kit and finally have a look at the API example usage. 0 Quote Link to comment Share on other sites More sharing options...
louisliu Posted December 22, 2008 Share Posted December 22, 2008 The payment modules I created are sets of files, so it would not be possible to post a small example here. Also I'm not able to simply share those files, since my customers have paid for them. But to point you in the right direction: Have a look at the available (unencrypted) anz payment module contribution, download and study the gateway module development kit and finally have a look at the API example usage. Where is the available (unencrypted) anz payment module contribution? Thank you! 0 Quote Link to comment Share on other sites More sharing options...
sgrayban Posted January 6, 2009 Share Posted January 6, 2009 Ya I was thinking the same thing. I sure as hell don't see it. 0 Quote Link to comment Share on other sites More sharing options...
Matt Wade Posted January 6, 2009 Share Posted January 6, 2009 http://wiki.whmcs.com/Contribution:ANZPaymentGateway 0 Quote Link to comment Share on other sites More sharing options...
sgrayban Posted January 6, 2009 Share Posted January 6, 2009 ahh thanks ! 0 Quote Link to comment Share on other sites More sharing options...
1host Posted May 28, 2009 Share Posted May 28, 2009 Have you create this module yet? 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.