NewPath-Consulting / quickbooks-for-wildapricot

QuickBooks for Wild Apricot - Never miss an entry and have peace of mind knowing your books are always up-to-date with accurate transactions. Reduce stress and errors with automated, categorized entries from Wild Apricot to your QuickBooks accounts.
https://newpathconsulting.com/waqm
Apache License 2.0
2 stars 1 forks source link

Add licensing check to scenario #25

Closed asirota closed 2 years ago

asirota commented 3 years ago

We have built a license checker that uses a webhook to check a license number for validity and expiration date.

The scenario runs on the NewPath Consulting lab account under waxm folder.

Need to implement this check when waqm runs.

See https://github.com/asirota/watm/issues/18 for details.

thelontx commented 3 years ago

Understood. I'll look. What is the expected behavior when the check fails? Email to NewPath and to the Client?

asirota commented 3 years ago

Good question. It should fail and send an email with a license violation.

Expired license Or Invalid license

With a link to https://waxm.newpathconsulting.com/waqm/

I’ll work out the exact language later. It should be friendly but direct.

On Wed, Jan 20, 2021 at 10:13 AM thelontx notifications@github.com wrote:

Understood. I'll look. What is the expected behavior when the check fails? Email to NewPath and to the Client?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/asirota/waqm/issues/25#issuecomment-763699542, or unsubscribe https://github.com/notifications/unsubscribe-auth/AADP3FTWX2SL7MXLDZGM2HLS23XIZANCNFSM4WKYSWDA .

--

-- Alex Sirota, PMP PGP Public Key http://bit.ly/asirotakey2: http://bit.ly/asirotakey2 Director at NewPath Consulting www.newpathconsulting.com

Schedule a meeting easily, at a time that works for you. http://www.newpathconsulting.com/alex.html

"I've learned that people will forget what you said, people will forget what you did, but people will never forget how you made them feel." - Maya Angelou

asirota commented 3 years ago

@thelontx check out this issue for detailed algorhtm - use waqm for the product code

asirota commented 3 years ago

@thelontx I have updated the scenario to support JSON as a response structure

I have added a json=1 query string to respond to valid/not valid keys in JSON structure

Example: https://hook.integromat.com/?key=EXPIRED-KEY-FOR-TESTING&json=1

will return

{"Email":"support@newpathconsulting.com","Products":["watm","warm","wawp","waqm"],"Licensed URLs":[],"Support Level":"support","expiration date":"2020-12-31T12:27:00.000Z"}

an invalid key will return

https://hook.integromat.com/?key=xEXPIRED-KEY-FOR-TESTING&json=1

{"no valid key found"}

Feel free to use this for WARM and WAWP

If you leave off json query string the regular html body will be returned.

thelontx commented 3 years ago

u[dated and ready in most recent scenarios