javooooo Posted April 22, 2013 Share Posted April 22, 2013 Hey guys, I noticed that 2CO just announced their new 'direct checkout' https://www.2checkout.com/direct-checkout/ Does anyone know how to go about integrating this into WHMCS? Cheers. 0 Quote Link to comment Share on other sites More sharing options...
ljesh Posted April 23, 2013 Share Posted April 23, 2013 Interested... I have been visiting this forum today only because of this. 0 Quote Link to comment Share on other sites More sharing options...
javooooo Posted April 23, 2013 Author Share Posted April 23, 2013 Same! Hoping we can get this up and running. 0 Quote Link to comment Share on other sites More sharing options...
kmm2908 Posted April 23, 2013 Share Posted April 23, 2013 Same here! 0 Quote Link to comment Share on other sites More sharing options...
Cape Dave Posted April 23, 2013 Share Posted April 23, 2013 Very interested ion this too. 0 Quote Link to comment Share on other sites More sharing options...
noisehosting Posted April 23, 2013 Share Posted April 23, 2013 This would be awesome. Please integrate it into WHMCS 0 Quote Link to comment Share on other sites More sharing options...
Roger Posted April 23, 2013 Share Posted April 23, 2013 (edited) They will provide a line of code for you to add to the cart. I think there may be some issue if you have multiple payment gateways. I did pose that question to the 2CO support folks but they didn't have a real answer. Edited April 23, 2013 by Roger 0 Quote Link to comment Share on other sites More sharing options...
cchristenson Posted April 23, 2013 Share Posted April 23, 2013 I am sorry to hear that the JavaScript was not explained well. The Direct Checkout JavaScript simply creates a hidden iframe and walks the DOM to look for a form with the action set to post to the 2Checkout purchase URL. If a 2Checkout form is found it adds an additional parameter, targets the iframe and makes it visible when the form is submitted. WHMCS does not create the 2Checkout form that submits the payment until after the payment method has been selected so it would not interfere with any other payment method. Let me know if I can help. Thanks, Craig 2Checkout.com 0 Quote Link to comment Share on other sites More sharing options...
javooooo Posted April 23, 2013 Author Share Posted April 23, 2013 Hi Craig, Yes - would you be able to walk us through getting the direct checkout to work through WHMCS? Does it impact other payment methods, as Roger has suggested? Cheers mate. 0 Quote Link to comment Share on other sites More sharing options...
kmm2908 Posted April 24, 2013 Share Posted April 24, 2013 (edited) Craig do we add the JavaScript to the viewinvoice.tpl? Anywhere else? Tried that already and doesn't appear to be working. In viewinvoice with Firebug on i can see the JavaScript is being added. When i click on pay now the diplay:none on the iframe div changes to display:block then the page connects to 2co, but opens in a new page not in the iframe. Help please! Edited April 24, 2013 by kmm2908 0 Quote Link to comment Share on other sites More sharing options...
javooooo Posted April 24, 2013 Author Share Posted April 24, 2013 I contacted Craig direct via email and he got back to me: ========== I have never actually looked at the WHMCS code, but basically all you need to do is find the view where the 2Checkout HTML form is displayed and add this line below the form. <script src="https://www.2checkout.com/static/checkout/javascript/direct.min.js"></script> This script will automatically hook into the form on page load and bring up the iframe when the form is submitted. =============== I had a look at adding this to the 2checkout module however consider it is all in IonCube, I gave up. Anyone have any other ideas? Cheers. 0 Quote Link to comment Share on other sites More sharing options...
ljesh Posted April 24, 2013 Share Posted April 24, 2013 The best idea I have is Matt or someone else from WHMCS to modify the 2checkout module and release it ASAP 0 Quote Link to comment Share on other sites More sharing options...
nimonogi Posted April 24, 2013 Share Posted April 24, 2013 The best idea I have is Matt or someone else from WHMCS to modify the 2checkout module and release it ASAP Hopefully will fix the multi-currency bug as well. 0 Quote Link to comment Share on other sites More sharing options...
kmm2908 Posted April 25, 2013 Share Posted April 25, 2013 Matt or anyone else from WHMCS, any progress on this? Can someone tell us if we can do it ourselves with the code we can access in the template files or does it have to be a module fix? If it is a module fix can someone let us know when it will be released? Making money is hard so any little edge we can grab over the competition is appreciated and I believe this is a really nice addition from 2co. Thanks in advance! 0 Quote Link to comment Share on other sites More sharing options...
javooooo Posted April 26, 2013 Author Share Posted April 26, 2013 Hopefully someone can give us an update on this. Since the last update, I've also been having issues with the 2CO recurring module saying "This file cannot be accessed directly" when you try to checkout. I've put in a ticket but no luck so far. 0 Quote Link to comment Share on other sites More sharing options...
kmm2908 Posted April 29, 2013 Share Posted April 29, 2013 Bump this, any news anyone? 0 Quote Link to comment Share on other sites More sharing options...
ljesh Posted April 29, 2013 Share Posted April 29, 2013 They are not going to modify one line of code that fast, just be patient. 0 Quote Link to comment Share on other sites More sharing options...
kmm2908 Posted April 30, 2013 Share Posted April 30, 2013 Sure but nice to be told its on the list will be ready in a week or so! 0 Quote Link to comment Share on other sites More sharing options...
kmm2908 Posted May 16, 2013 Share Posted May 16, 2013 Can we get some progress on this please? Cannot be massively difficult task. If it was open source code we could do ourselves but its not so we have to rely on you guys to handle this. Feedback please. 0 Quote Link to comment Share on other sites More sharing options...
appblokes Posted May 19, 2013 Share Posted May 19, 2013 Currently working on a solution. I'll post back here once it's completed. 0 Quote Link to comment Share on other sites More sharing options...
kmm2908 Posted May 20, 2013 Share Posted May 20, 2013 Thanks for the update, much appreciated. 0 Quote Link to comment Share on other sites More sharing options...
cpmax Posted May 24, 2013 Share Posted May 24, 2013 Thanks for the post. Waiting for new 2checkout module release. 0 Quote Link to comment Share on other sites More sharing options...
And then there was one les Posted June 4, 2013 Share Posted June 4, 2013 Hopefully someone can give us an update on this. Since the last update, I've also been having issues with the 2CO recurring module saying "This file cannot be accessed directly" when you try to checkout. I've put in a ticket but no luck so far. Any news on this? I have just setup the module today v5.2.5 and have the same issue. 0 Quote Link to comment Share on other sites More sharing options...
fastfollowerz Posted June 10, 2013 Share Posted June 10, 2013 Any news on this? I have just setup the module today v5.2.5 and have the same issue. Had the same issue when we upgraded to 5.2.5. A temporary fix was to copy the 2checkout files from previous version and replace with files from 5.2.5. Hopefully this will be released soon - 2checkout was no help whatsoever when we requested support. 0 Quote Link to comment Share on other sites More sharing options...
fastfollowerz Posted June 10, 2013 Share Posted June 10, 2013 We had the same issue with "This file cannot be accessed directly" as soon as we upgraded to 5.2.5 2checkout was no help whatsoever when we requested assistance. To fix the issue temporarily, we have copied the old 2checkout files and replaced them on version 5.2.5. This fixes the issue with receiving that error. 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.