webzunft / edd-helpscout Goto Github PK
View Code? Open in Web Editor NEWEasy Digital Downloads integration for HelpScout. A WordPress Plugin.
License: GNU General Public License v2.0
Easy Digital Downloads integration for HelpScout. A WordPress Plugin.
License: GNU General Public License v2.0
Help Scout currently requires custom app callback URLs to be SSL.
Anyone know of any way to test non-SSL callback URLs for changes to this plugin? Trying to run this on a test site.
Possibly due to a recent change by HelpScout?
Resend link returns a "-1" in content for me now and doesn't send. Tested a few different customers.
This query needs updating to be compatible with EDD 3.0:
https://github.com/webzunft/edd-helpscout/blob/master/includes/class-endpoint.php#L202-L221
Optionally, the contents of get_customer_orders()
could be updated for improved performance in EDD 3.0: https://github.com/webzunft/edd-helpscout/blob/master/includes/class-endpoint.php#L247-L302 As is, once the actual customer payments query is updated get_customer_orders()
should work perfectly fine, but there is a performance hit if you work with EDD_Payment
instead of the new Order
object in 3.0.
I (or someone else from the EDD team) will be happy to work up a PR for this soon, just getting the issue in. 👍
Hey,
I just installed your plugin and followed the instructions to a T and I'm getting a "Not Found" message for all customer tickets within our HelpScout sidebar. Any idea why this would happen? I've double and triple checked the secret key and that is not the issue. I can share the debug log if that helps, just let me know. Please note that all of our customers are currently on free trials and I know that "free trials" are relatively new in EDD, so wondering if that's part of the issue.
Let me know what you need from me to help debug.
Thank you!
We've recently noticed that when the (deactivate) link is clicked in HelpScout, the link redirects to a new tab that's an empty page and then nothing happens (the license does not get deactivated in EDD). Let me know if there is additional info I can provide to help debug.
Thank you!
I require customers to enter their payment email and license key (generated from EDD Software Licensing) when submitting a support request that goes directly to Help Scout.
However, many enter an unrecognized payment email, probably due to simply forgetting what that email was when they purchased.
It would be nice if this plugin would fall back to looking up their EDD SL license key if in the body of the ticket when the payment can't be found by email.
Thanks!
I just noticed on my own account that several of the licenses do not have the nice little gear icon that lets us easily view/manage the license in EDD.
Looking at the code reveals that this link is dependent on the availability of price options:
edd-helpscout/views/licenses.php
Line 19 in c3692c8
That seems an odd choice, and we'd rather have the link there all the time. Any feedback on that?
While working on removing the direct SQL query currently used to retrieve payments by email, I noticed that this becomes more complex when considering all possible scenarios.
An ideal scenario is that one user has one email address in Help Scout, one corresponding EDD Customer profile and one or more payments attached to that profile. We could easily use EDD_Customer->get_payments()
to get all payments then.
The reality might look different, though. Here are a few possible scenarios:
A possible solution for this might look like this:
Check for purchases also if the user wrote from an email address that is a secondary email in her Customer profile in EDD.
It would be nice if there was support so you could see if the customer licenses were active or expired.
Right now, the widget does not show any information about subscriptions and its status
Currently Licenses always defaults to open, while Orders and Subscriptions remain closed. We often refer to Orders first, so it would be nice to have these sections make use of the persistence feature of HS widgets.
Why are you creating this plugin when there are other similar plugins?
https://github.com/Yoast/helpscout-edd
https://github.com/easydigitaldownloads/EDD-Help-Scout
https://sproutapps.co/help-scout-desk-wordpress-plugin/
(without the need for a PayPal account login)
4582a2b#diff-62dbe9cdbba972e4e38c8d689e4d675a018328604057471191e8551d7c010cffL315-L316 removed the link that allows resending the receipt with one click.
There was no reason given in the description, so I guess this was an accident.
@Spreeuw do you remember if you removed the icon that resends purchase receipts on purpose?
@rene-hermenau thanks for making me aware of this!
EDD 2.6 (currently in beta) is introducing multiple emails per customer.
https://easydigitaldownloads.com/development/2016/05/26/version-2-6-beta-1-now-available/
I haven't setup a HelpScout "staging" mailbox to test this yet, but does this or will this work? Or is it unknown?
verify_referer()
is failing because HTTP_REFERER
is now null, sometimes.....
https://github.com/fdmedia-io/edd-helpscout-api-endpoint shows an mu-plugin to improve the load of the EDD HS endpoint by only enabling certain plugins. Link to it in the readme(s) for experienced developers to implement.
Just leaving this note to check later.
As a German who runs an EDD store in English, it would be helpful to have a different date format (01.02.2018 instead of 2018-02-01).
Does the plugin use the local WP format?
Even if not, we might want to use a filter to change it for our use case since our WP installation also uses the English date format.
Does this work with Multi Site installs? Getting a "Moved Permanently" message where the contents should show.
After the 1.0.1 update I got an "internal server error" message showing up in the sidebar on all my Help Scout tickets. Before that EDD + software licensing was working great linking to both payment records and license keys.
I turned debug mode on in Help Scout, and the error is: "Json Parser: Syntax error, malformed JSON".
I double-checked my line in wp-config.php and it still matches up.
define( 'HELPSCOUT_SECRET_KEY', 'random-40-character-key' );
This is on 2 different sites running the latest of EDD + SL. Cleared the object cache and all that too. They're both running on WP Engine.
This has been a super-helpful plugin, so thanks for the work on it so far!
I'd happily pay for a supported pro version FYI, if that was ever under consideration. Not sure how many folks are using this plugin but it has become a huge time saver for me and my support folks. :)
I miss the feature to show notes about a certain user or client in Help Scout. That could be an option in the plugin, at least for clients.
We could add fields to the customer profile for EDD notes that show up at the top in the EDD Help Scout widget.
See https://secure.helpscout.net/conversation/224161791/7010/?folderId=253125. I suspect we're querying for an empty email address string.
I was working on building another Help Scout integration today for my Restrict Content Pro plugin but was running into an issue where the app always returned the response from EDD Help Scout
.
No matter what URL I used, EDD HS always took over.
Turns out this is because of the isset( $_SERVER['HTTP_X_HELPSCOUT_SIGNATURE'] )
check in the __construct()
method: https://github.com/dannyvankooten/edd-helpscout/blob/master/edd-helpscout.php#L64
Because of that, it's exceptionally difficult for another plugin to setup a HS response.
This could be easily fixed by also requiring a special query arg.
For example, in the RCP HS plugin I'm working on, I'm registering an endpoint and then only processing the request at that endpoint:
add_rewrite_endpoint( 'member', EP_PERMALINK | EP_PAGES );
......
global $wp_query;
if ( isset( $wp_query->query_vars[ 'member' ] ) ) {
$plugin = new PW_RCP_Help_Scout_Plugin_Handler();
echo json_encode( $plugin->getResponse() );
exit();
}
In Helpscout, I set the URL of the app to https://pippinsplugins.com/?member=1
.
It may be a little bit slower because more of WordPress is loaded, but at least it remains flexible.
HelpScout will deprecate their old API on June 5, 2019. Hoping you can get ahead of that so there's a smooth and seamless migration to the new API.
See here:
https://developer.helpscout.com/mailbox-api/
and here:
https://developer.helpscout.com/mailbox-api/overview/v1-v2-differences/
Thanks!
(without the need for a Stripe management account)
Related to #51 and might become obsolete with a major rewrite, but might be simpler to have this here first.
At the current state, the plugin can only find the EDD customer for the sending email address, not to the once also attached to the Help Scout profile.
We might want to query the EDD profiles for all attached emails and add a warning if there are more than one.
To make it easier for other add-ons to echo their output along with the rest of the payment information
Example: link to invoice, etc.
Related to #25
Which can be overwritten.
Often times the email used on a Help Scout support ticket is not attached to the Edd license. It would be a great feature addition if the license information can be searched and displayed by querying the license key provided in the Help Scout ticket.
How is this directory created?
With an upcoming version of Software licensing, there is the possibility of the check_license
return containing the string lifetime
for the expires value
.
Throwing a quick PR together to account for this.
On HelpScout it is no longer linking directly to the PayPal payment ever since we switched to PayPal Express, and that was a very handy feature to have.
Not 100% sure why, but spent about 2 hours tracking down errors that prevented a json response from the api.
Found that was getting many errors from standard functions like get_the_title which was throwing a trying to call method on a non object error.
Changing the hook from 'plugins_loaded' to 'init' resolved all issues.
The issues I did nail down were due to filters from bbPress, EDD Wishlists etc. But simply changing that hook solved all issues.
After some research that is the optimal hook to echo json and exit unless you prefer template_redirect.
I believe that there are some issues with the main query being overwritten to soon in the process that may be the culprit.
Would be awesome if you could add support for showing the "View Invoice" link of EDD Quaderno.
Related source code for the used meta field:
https://github.com/quaderno/quaderno-edd/blob/a4640477b0b59ac81ae5165933575b3b293b3edb/includes/order_details.php#L29
See #44
It looks like HS can't tie the customer to the EDD payment when the email for the payment is not the primary one. Using latest on dev branch of this plugin at 0e39e99.
For this example, [email protected] is the email tied to the EDD payment.
Past versions of edd-helpscout used to check secondary or beyond emails of the HS customer to try and tie to the EDD payment if the first email didn't work.
A user reported that the emails
field could be empty. This causes a couple of error messages:
Help Scout’s documentation on dynamic apps lists an email
and emails
field. EDD HS doesn’t work with the email
field right now, which might be part of the issue.
A change should include that field. Especially, if emails
is empty.
I've added the HELPSCOUT_SECRET_KEY to my wp-config.php file But I keep getting {"html":"Invalid signature"}
https://astoundify.com/edd-hs-api/customer-data.json
It used to work on Digital Ocean, but as soon as I moved to pagely it broke inside of Helpscout showing this message: Invalid signature
any ideas?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.