meter 145 Posted March 27, 2015 Author Report Share Posted March 27, 2015 Hola UBOTEM Only real snags I have (and they are super-minor)...1) email sent to licensees I would prefer to change the reply to address to our support email (can you tell me what file in the web folder I need to edit to achieve this?)2) small icons in the licence entry part and updating part (would love it to be a key or something better than that funny boxes thing, lol) Also another question... can my update link be https? (haven't tested yet but assuming this could be ok!) 1. You can change this code in IpnFunctions.php: $headers = "From: noreply@$siteUrl\r\n" . 2. You can use a resource editor on License.dll to change icons. 3. I think this should be fine. Experiment and find out -meter Quote Link to post Share on other sites
UBOTEM 18 Posted March 28, 2015 Report Share Posted March 28, 2015 @meter Excellent! Thanks Quote Link to post Share on other sites
UBOTEM 18 Posted March 31, 2015 Report Share Posted March 31, 2015 1. You can change this code in IpnFunctions.php: $headers = "From: noreply@$siteUrl\r\n" .-meter Changed two lines in IpnFunctions.php from $headers = "From: noreply@$siteUrl\r\n"to $headers = "From: support@mysite.com\r\n"but serial emails still showing as from noreply@subdomain.mysite.com As I am using a sub-domain to host my license server! Quote Link to post Share on other sites
UBOTEM 18 Posted March 31, 2015 Report Share Posted March 31, 2015 ** FEATURE REQUEST **Was thinking last night how cool it would be to grab the Licence User Name from within Ubot! For example if we could have a plugin function something like: set(#var_licenseUserName, $plugin function("Ubot Locker.dll", "http://www.mysite.com/VerifyLicense.php", "License.lic", "name"), "Global") set(#var_licenseUserEmail, $plugin function("Ubot Locker.dll", "http://www.mysite.com/VerifyLicense.php", "License.lic", "email"), "Global")Then we could do a few things, but the items I would love to use in my bots would be Name and Email of the license user.Then my software/bots could greet the user, and also I could track usage of my customers which will help me focus on my important products and provide a better experience for my customers Quote Link to post Share on other sites
Bot-Factory 602 Posted March 31, 2015 Report Share Posted March 31, 2015 You could read the email from the license file directly. Quote Link to post Share on other sites
meter 145 Posted March 31, 2015 Author Report Share Posted March 31, 2015 Changed two lines in IpnFunctions.php from $headers = "From: noreply@$siteUrl\r\n"to $headers = "From: support@mysite.com\r\n"but serial emails still showing as from noreply@subdomain.mysite.com As I am using a sub-domain to host my license server! That's strange. You sure you uploaded the files after changing them? That's literally the only place in UbotLocker that email sending is handled. Well, that and MailLicense.php, but that only affects when you click 'mail' on Manage Licenses screen. -meter Quote Link to post Share on other sites
Bot-Factory 602 Posted March 31, 2015 Report Share Posted March 31, 2015 You could read the email from the license file directly. Quote Link to post Share on other sites
Bot-Factory 602 Posted March 31, 2015 Report Share Posted March 31, 2015 You could read the email from the license file directly. Quote Link to post Share on other sites
UBOTEM 18 Posted April 1, 2015 Report Share Posted April 1, 2015 You could read the email from the license file directly. Thats good to know, so really all we need is the name to be recorded in the License.lic also, then we could greet a user in our software Quote Link to post Share on other sites
UBOTEM 18 Posted April 1, 2015 Report Share Posted April 1, 2015 OK today I feel like a noob! Thought I had this all setup License activation, keys, etc.. ALL WORKING GREAT My problem is the IPN. My setup is different as already have a digital download store. So... I added the IPN URL to my paypal account like so: Then I also tested the IPN using paypals tester here:https://developer.paypal.com/webapps/developer/applications/ipn_simulator Which showed up in the UbotLocker PayPal logs:Note that the top entry matched one of my projects, but the test email did not receive any license email, nor was a license created automatically for this to entry (but did not notice at that time) So then I assumed it was all working... Then added all of my projects to UbotLocker making sure the name matched my product names. Waited for some payments to come through, but it seems that no payments to my paypal account are showing in UbotLocker PayPal logs.... I will look over the setup, in-case I left something important out!Glad I have not yet switched over my paid products, was going to make sure license keys were being emailed to customers first. ANY HELP IS GREATLY APPRECIATED This system rocks, just need this IPN and keys to be issued automatically Quote Link to post Share on other sites
UBOTEM 18 Posted April 1, 2015 Report Share Posted April 1, 2015 That's strange. You sure you uploaded the files after changing them? That's literally the only place in UbotLocker that email sending is handled. Well, that and MailLicense.php, but that only affects when you click 'mail' on Manage Licenses screen. -meter YAY! that fixed the issue THANKS I have yet to see an automatic key email, I was using the email button! Please see my previous post about my IPN problems Quote Link to post Share on other sites
cүвεя_נυηкιε 68 Posted April 1, 2015 Report Share Posted April 1, 2015 YAY! that fixed the issue THANKS I have yet to see an automatic key email, I was using the email button! Please see my previous post about my IPN problems Hey UBOTEM I had an issue similar to this no long ago,it turned out to be a Paypal IPN setting that i had set quite a few years ago, so maybe check ALL paypal IPN settings,there are other settings regarding the IPN in your "My Profile" and then "My selling preferences" page, To be absolutely honest i cant remember which option it was but its the page with these option on :API accessInstant payment notifications Hope that helps Good luck CJ Quote Link to post Share on other sites
UBOTEM 18 Posted April 1, 2015 Report Share Posted April 1, 2015 @cүвεя_נυηкιε Thanks for helping... Have looked at PayPal and the only settings I could find were on this page.. Have found PayPal IPN history page... And have ticked to resend the payment to IPN URL... But this again did not show in my UbotLocker PayPal Logs Will hunt through PayPal and see if can find any other references to the IPN, but so far only the setting found is on the above image. Quote Link to post Share on other sites
UBOTEM 18 Posted April 1, 2015 Report Share Posted April 1, 2015 OK diagnosed my problem... The transaction in my shop overrides the IPN URL Not sure how to fix, as don't think can have multiple IPNs(have read how to rebroadcast the IPN to multiple URLs, but unsure if this is safe and secure as contains sensitive data) Here is the transaction details for a purchase made through my shop... As you can see the IPN is set to return user to my shop for the download, this needs to happen.But I need PayPal to also send a IPN to my locker system. Does anyone know if is possible to set this up, and have two IPN URLs? Quote Link to post Share on other sites
cүвεя_נυηкιε 68 Posted April 1, 2015 Report Share Posted April 1, 2015 @cүвεя_נυηкιε Thanks for helping... Have looked at PayPal and the only settings I could find were on this page.. Have found PayPal IPN history page... And have ticked to resend the payment to IPN URL... But this again did not show in my UbotLocker PayPal Logs Will hunt through PayPal and see if can find any other references to the IPN, but so far only the setting found is on the above image. Yep, that looks like the setting have you triedhttp://www.YOURSITE/license/Paym............etcinstead ofhttp://www.license.YOURSITE/Paym............etc its the only thing that looks different to my own setup,and i know some sites can be fiddly with the format of sub domains worth a try CJ Quote Link to post Share on other sites
Monovski 4 Posted April 1, 2015 Report Share Posted April 1, 2015 Hello meter, what error like this: http://oi57.tinypic.com/ezh8ow.jpghttp://oi62.tinypic.com/2r3wc5l.jpg Please help, Thanks Quote Link to post Share on other sites
UBOTEM 18 Posted April 1, 2015 Report Share Posted April 1, 2015 Yep, that looks like the setting have you triedhttp://www.YOURSITE/license/Paym............etcinstead ofhttp://www.license.YOURSITE/Paym............etc its the only thing that looks different to my own setup,and i know some sites can be fiddly with the format of sub domains worth a try CJ Thanks again for help.... I have diagnosed my issue... But still unsure how to solve my issue...Diagnosis post http://www.ubotstudio.com/forum/index.php?/topic/12958-sell-ubotlocker-web-web-based-licensing-solution-that-prevents-decompiling-and-cracking/page-47&do=findComment&comment=109287 Basically I need PayPal to send two IPNs... Not sure if we can have two url's in the notify_url within the payment button, but that's what I sort-of need. Can not believe that paypal is not sending IPN to the URL I have entered into my account, as the IPN url is overrided by store? Quote Link to post Share on other sites
cүвεя_נυηкιε 68 Posted April 1, 2015 Report Share Posted April 1, 2015 (edited) OK diagnosed my problem... The transaction in my shop overrides the IPN URL Not sure how to fix, as don't think can have multiple IPNs(have read how to rebroadcast the IPN to multiple URLs, but unsure if this is safe and secure as contains sensitive data) Here is the transaction details for a purchase made through my shop...http://www.ubotstudio.com/forum/public/style_images/master/attachicon.gifTransaction from my shop.png As you can see the IPN is set to return user to my shop for the download, this needs to happen.But I need PayPal to also send a IPN to my locker system. Does anyone know if is possible to set this up, and have two IPN URLs? I am currently in the process of integrating a sales platform to my site,so i would also like to know if 2 API calls are possible, ..in fact i hadnt even thought about that, .. +1 to find out this EDIT :pretty useful info here :http://codeseekah.com/2012/02/11/how-to-setup-multiple-ipn-receivers-in-paypal/ Edited April 1, 2015 by cүвεя_נυηкιε Quote Link to post Share on other sites
UBOTEM 18 Posted April 1, 2015 Report Share Posted April 1, 2015 I am currently in the process of integrating a sales platform to my site,so i would also like to know if 2 API calls are possible, ..in fact i hadnt even thought about that, .. +1 to find out this EDIT :pretty useful info here :http://codeseekah.com/2012/02/11/how-to-setup-multiple-ipn-receivers-in-paypal/ LOL was just in middle of posting that link @meter can you please look at this http://codeseekah.com/2012/02/11/how-to-setup-multiple-ipn-receivers-in-paypal/ and let us know if any security issues using this, and can I run this broadcaster on SSL? Other option am looking into is: with my WooCommerse store and if can alter IPN or rebroadcast from there! Quote Link to post Share on other sites
UBOTEM 18 Posted April 1, 2015 Report Share Posted April 1, 2015 Also if we use the notify_url with our ubotlocker it will expose the IPN URL, is this safe for people/hackers to know where the IPN servers are? Assume this is OK but thought would ask if a security issue. Quote Link to post Share on other sites
Bot-Factory 602 Posted April 1, 2015 Report Share Posted April 1, 2015 OK diagnosed my problem... The transaction in my shop overrides the IPN URL Not sure how to fix, as don't think can have multiple IPNs(have read how to rebroadcast the IPN to multiple URLs, but unsure if this is safe and secure as contains sensitive data) Here is the transaction details for a purchase made through my shop...http://www.ubotstudio.com/forum/public/style_images/master/attachicon.gifTransaction from my shop.png As you can see the IPN is set to return user to my shop for the download, this needs to happen.But I need PayPal to also send a IPN to my locker system. Does anyone know if is possible to set this up, and have two IPN URLs? You could modify your shop script to forward details to ubot locker after a successful purchase. Dan Quote Link to post Share on other sites
UBOTEM 18 Posted April 1, 2015 Report Share Posted April 1, 2015 You could modify your shop script to forward details to ubot locker after a successful purchase. Dan Thanks Dan, this is what I am currently looking at...Believe I need to call this rebroadcast script on the successful return page (from PayPal).http://codeseekah.com/2012/02/11/how-to-setup-multiple-ipn-receivers-in-paypal/ This will also queue the broadcast if unable to send to one on the IPN URLs Not quite sure how to implement, could I paste the code into my page?Am quite OK with basic PHP and HTML, but no expert Quote Link to post Share on other sites
UBOTEM 18 Posted April 1, 2015 Report Share Posted April 1, 2015 @dan With that PHP script, could I wrap it into a function called ipnRebroadcast. Then include the script in PHP and run function? With the following code in my successful transaction page (ie the return url from paypal to my store). <?php include "ipn.php"; ipnRebroadcast(); ?> Quote Link to post Share on other sites
Bot-Factory 602 Posted April 1, 2015 Report Share Posted April 1, 2015 It's hard to say without knowing your shop script. But normally every shop script has a post transaction process. And you could just add the ubot locker integration into that shop php file.I did the same with my EDD extension. It's just sending a http post to the ubot locker script after a successful purchase. Job done. Dan Quote Link to post Share on other sites
UBOTEM 18 Posted April 1, 2015 Report Share Posted April 1, 2015 @dan OK that seems fine.. Was just about to change the notify_url like this protected $notify_url; /** * Constructor * @param WC_Gateway_Paypal $gateway */ public function __construct( $gateway ) { $this->gateway = $gateway; #$this->notify_url = WC()->api_request_url( 'WC_Gateway_Paypal' ); #original line now commented out $this->notify_url = 'http://www.mysite.com/ipnRebroadcast.php'; #my line } & was going to have IPN rebroadcasted back to shop IPN URL and to UbotLocker PaymentNotify.php IPN URL. But if you have a simple solution, please share Have latest WordPress and Woocommerse setup. I don't want to muck anything up as it is a live site with sales and customers Quote Link to post Share on other sites
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.