2024 posts
  • Elite Author
  • Author had a Free File of the Month
  • Has been a member for 4-5 years
  • Austria
  • Exclusive Author
  • Interviewed on the Envato Notes blog
  • Envato Studio (Microlancer) Beta Tester
+3 more
revaxarts says

Hi! thanks to @duotive and @dtbaker for the explanation. My WP theme still in progress and I have a plan to make the Purchase Code as option to enable the updater (Product Serial Number likes).

Some of Themeforest authors give a notification about their purchased theme/plugin(s) have an update from WP dashboard than the buyer have to go to the theme/plugin themeforest page to get the new file(s). Cause of that, I got an idea to make a “setup installation” after theme/plugin activated, than the user must input their Purchase Code > click the Finish button and after that buyer can get the updated files directly on their WP dashbord or Theme option as well.

My question is. can I use the Purchase Code as Product Serial Number likes? I wonder what I can do with this function, may be integrating the supports directly from WP dashboard and much more :D

I’ve started a thread at CC about this topic. The main problem in my opinion is that buyers see the purchase code and their API key

I like the idea with the setup installation but in case your server goes down it will bring you a bad reputation though

135 posts
  • Has been a member for 3-4 years
  • Exclusive Author
  • Sold between 1 000 and 5 000 dollars
  • Denmark
  • Bought between 100 and 499 items
  • Referred between 10 and 49 users
rolandjitsu says


Hi! thanks to @duotive and @dtbaker for the explanation. My WP theme still in progress and I have a plan to make the Purchase Code as option to enable the updater (Product Serial Number likes).

Some of Themeforest authors give a notification about their purchased theme/plugin(s) have an update from WP dashboard than the buyer have to go to the theme/plugin themeforest page to get the new file(s). Cause of that, I got an idea to make a “setup installation” after theme/plugin activated, than the user must input their Purchase Code > click the Finish button and after that buyer can get the updated files directly on their WP dashbord or Theme option as well.

My question is. can I use the Purchase Code as Product Serial Number likes? I wonder what I can do with this function, may be integrating the supports directly from WP dashboard and much more :D

I’ve started a thread at CC about this topic. The main problem in my opinion is that buyers see the purchase code and their API key

I like the idea with the setup installation but in case your server goes down it will bring you a bad reputation though

I agree with you, it makes sense that the username and API should be the buyers, but it would have been nicer if the username and API is ours and only the purchase code to be required from the buyer. Some buyers might not even know where to find the API KEY or what is that :)

Perhaps Envato will come up with a new API which will allow us to do what we need, especially the updates part :D

2954 posts
  • Australia
  • Community Moderator
  • Elite Author
  • Author had a Free File of the Month
  • Most Wanted Bounty Winner
  • Author had a File in an Envato Bundle
  • Has been a member for 5-6 years
  • Contributed a Blog Post
  • Repeatedly Helped protect Envato Marketplaces against copyright violations
+10 more
dtbaker Volunteer moderator says

nope the API key is ours. end-users never have to enter their API key along with their licence purchase code. Only their licence purchase code.

Like this example: http://dtbaker.com.au/envato/download.php You enter your author username, your author API key, and your users licence purchase code. It generates the download link. Source code here http://dtbaker.com.au/envato/download.phps

135 posts
  • Has been a member for 3-4 years
  • Exclusive Author
  • Sold between 1 000 and 5 000 dollars
  • Denmark
  • Bought between 100 and 499 items
  • Referred between 10 and 49 users
rolandjitsu says

nope the API key is ours. end-users never have to enter their API key along with their licence purchase code. Only their licence purchase code. Like this example: http://dtbaker.com.au/envato/download.php You enter your author username, your author API key, and your users licence purchase code. It generates the download link. Source code here http://dtbaker.com.au/envato/download.phps
So you’re saying that in the next statement:
$url = "http://marketplace.envato.com/api/v3/username/api-key/download-purchase:licence_code.json';
the username and the api-key is ours, and only the purchase code is the clients ? Because that would be great when it comes to having a download link to your items for the buyers ( if they provide the purchase code ) :)

But is it safe to provide such a link ? Of course using PHP and not JS.

2024 posts
  • Elite Author
  • Author had a Free File of the Month
  • Has been a member for 4-5 years
  • Austria
  • Exclusive Author
  • Interviewed on the Envato Notes blog
  • Envato Studio (Microlancer) Beta Tester
+3 more
revaxarts says

nope the API key is ours. end-users never have to enter their API key along with their licence purchase code. Only their licence purchase code. Like this example: http://dtbaker.com.au/envato/download.php You enter your author username, your author API key, and your users licence purchase code. It generates the download link. Source code here http://dtbaker.com.au/envato/download.phps
NO, not in my case! if I enter
http://marketplace.envato.com/api/v3/MY_USERNAME/MY_APIKEY/download-purchase:BUYER_PURCHASECODE.json
I only get
{"download-purchase":{}}
but if I enter
http://marketplace.envato.com/api/v3/BUYER_USERNAME/BUYER_APIKEY/download-purchase:BUYER_PURCHASECODE.json
i get
{"download-purchase":{"download_url":"http://s3.amazonaws.com/marketplace-downloads.envato.com/files/123456/blablabla.zip?AWSAccessKeyId=blablabla\u0026Expires=123456789\u0026Signature=foobarfoobar\u0026response-content-disposition=attachment;%20filename=blablabla.zip"}}

The item isn’t a wordpress plugin or theme but I guess this doesn’t matter

135 posts
  • Has been a member for 3-4 years
  • Exclusive Author
  • Sold between 1 000 and 5 000 dollars
  • Denmark
  • Bought between 100 and 499 items
  • Referred between 10 and 49 users
rolandjitsu says


nope the API key is ours. end-users never have to enter their API key along with their licence purchase code. Only their licence purchase code. Like this example: http://dtbaker.com.au/envato/download.php You enter your author username, your author API key, and your users licence purchase code. It generates the download link. Source code here http://dtbaker.com.au/envato/download.phps
NO, not in my case! if I enter
http://marketplace.envato.com/api/v3/MY_USERNAME/MY_APIKEY/download-purchase:BUYER_PURCHASECODE.json
I only get
{"download-purchase":{}}
but if I enter
http://marketplace.envato.com/api/v3/BUYER_USERNAME/BUYER_APIKEY/download-purchase:BUYER_PURCHASECODE.json
i get
{"download-purchase":{"download_url":"http://s3.amazonaws.com/marketplace-downloads.envato.com/files/123456/blablabla.zip?AWSAccessKeyId=blablabla\u0026Expires=123456789\u0026Signature=foobarfoobar\u0026response-content-disposition=attachment;%20filename=blablabla.zip"}}
The item isn’t a wordpress plugin or theme but I guess this doesn’t matter

Yeah, already tried that :) Same result on my end :| Sad because I was thinking of implementing something like that on my new website, a backend for my buyers where they can download their purchases ( what they brought from me ) and get support and etc.

But as someone here mentioned, some users are not comfortable providing their username and API keys. So we’ll have to wait for a better API :)

13 posts
  • Australia
  • Has been a member for 2-3 years
dgoodlad says

Hi all

It seems that there’s some confusion about the download-purchase vs verify-purchase API methods.

download-purchase is for buyers to generate their download link for a purchase. This method requires the use of the buyer’s username and API key. verify-purchase is for sellers to retrieve details about a purchase. This method requires the use of the seller’s username and API key.

Hope that clears things up! :)

David

135 posts
  • Has been a member for 3-4 years
  • Exclusive Author
  • Sold between 1 000 and 5 000 dollars
  • Denmark
  • Bought between 100 and 499 items
  • Referred between 10 and 49 users
rolandjitsu says

Hi all

It seems that there’s some confusion about the download-purchase vs verify-purchase API methods.

download-purchase is for buyers to generate their download link for a purchase. This method requires the use of the buyer’s username and API key. verify-purchase is for sellers to retrieve details about a purchase. This method requires the use of the seller’s username and API key.

Hope that clears things up! :)

David

That’s what I thought, I mean it makes sense to be that way, but it would have been nice if there was a way to provide a download link without the client’s API , a download link for my items only per say, only what he / she purchased from me, not all his downloads.

Also, another good thing would be if there were some info on the updates in the API , a way to inform the clients that we updated our items.

2024 posts
  • Elite Author
  • Author had a Free File of the Month
  • Has been a member for 4-5 years
  • Austria
  • Exclusive Author
  • Interviewed on the Envato Notes blog
  • Envato Studio (Microlancer) Beta Tester
+3 more
revaxarts says

Thanks David for clarification!

I’m surprised why buyers should enter all that information when the purchase code verifies the purchase already. Furthermore it’s more complicated to explain them where to find their API key and what is it for.

The only reason why all that info is required is because someone could guess a correct code but that’s really implausible.

Much better would be a download with only the purchase code for the next API update or I have to use my own implementation

2954 posts
  • Australia
  • Community Moderator
  • Elite Author
  • Author had a Free File of the Month
  • Most Wanted Bounty Winner
  • Author had a File in an Envato Bundle
  • Has been a member for 5-6 years
  • Contributed a Blog Post
  • Repeatedly Helped protect Envato Marketplaces against copyright violations
+10 more
dtbaker Volunteer moderator says

nope the API key is ours. end-users never have to enter their API key along with their licence purchase code. Only their licence purchase code.

rofl. maybe I should have tested the API before posting that :P yep needs buyers api key and their licence code. how strange!

by
by
by
by
by
by