Jump to content

tcvdveer

Member
  • Posts

    13
  • Joined

  • Last visited

About tcvdveer

tcvdveer's Achievements

Junior Member

Junior Member (1/3)

0

Reputation

  1. I've been able to successfully intgrate an iDeal Advanced (ING) payment gateway with WHMCS (Dutch direct debit module).
  2. 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.
  3. 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.
  4. 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.
  5. Thanks for your reply Shaun. After a lot of testing and trying it appeared that I had to use the invoice id here instead of the client id.
  6. I use following code to send an e-mail from a custom page in case a creditcard transaction fails. With this example I try to send the e-mail to the client with client id 1. The response result gives a success, but no e-mail is being send. Can anyone point me to what I'm doing wrong here? <?php include("dbconnect.php"); include("includes/functions.php"); include("includes/clientfunctions.php"); $username = "admin"; $password = "xxxxxx"; $url = "http://www.xxxxx.xxx/clients/includes/api.php"; # URL to WHMCS API file $postfields["username"] = $username; $postfields["password"] = md5($password); $postfields["action"] = "sendemail"; $postfields["messagename"] = "Credit Card Payment Failed"; $postfields["id"] = "1"; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_TIMEOUT, 100); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_POSTFIELDS, $postfields); $data = curl_exec($ch); curl_close($ch); ?>
  7. 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.
  8. 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.
  9. 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.
  10. 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.
  11. 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?
×
×
  • 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