2184 posts
  • Made it to the Authors' Hall of Fame
  • Had an item featured on Envato Market
  • Participated in a focus group or interview to improve the user experience on Envato Market
  • Interviewed on an Envato blog
+10 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 referred 10+ members
  • Has sold $1,000+ on Envato Market
  • Has collected 100+ items on Envato Market
  • Has been part of the Envato Community for over 3 years
+2 more
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

3308 posts
  • Provided great contribution to our forums
  • Nominated Community Superstar of the month
  • Helps us moderate the forums
  • Has been part of the Envato Community for over 5 years
+18 more
dtbaker 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 referred 10+ members
  • Has sold $1,000+ on Envato Market
  • Has collected 100+ items on Envato Market
  • Has been part of the Envato Community for over 3 years
+2 more
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.

2184 posts
  • Made it to the Authors' Hall of Fame
  • Had an item featured on Envato Market
  • Participated in a focus group or interview to improve the user experience on Envato Market
  • Interviewed on an Envato blog
+10 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 referred 10+ members
  • Has sold $1,000+ on Envato Market
  • Has collected 100+ items on Envato Market
  • Has been part of the Envato Community for over 3 years
+2 more
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
  • Has been part of the Envato Community for over 3 years
  • Located in Australia
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 referred 10+ members
  • Has sold $1,000+ on Envato Market
  • Has collected 100+ items on Envato Market
  • Has been part of the Envato Community for over 3 years
+2 more
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.

2184 posts
  • Made it to the Authors' Hall of Fame
  • Had an item featured on Envato Market
  • Participated in a focus group or interview to improve the user experience on Envato Market
  • Interviewed on an Envato blog
+10 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

3308 posts
  • Provided great contribution to our forums
  • Nominated Community Superstar of the month
  • Helps us moderate the forums
  • Has been part of the Envato Community for over 5 years
+18 more
dtbaker 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!

Helpful Information

  • Please read our community guidelines. Self promotion and discussion of piracy is not allowed.
  • Open a support ticket if you would like specific help with your account, deposits or purchases.
  • Item Support by authors is optional and may vary. Please see the Support tab on each item page.

Most of all, enjoy your time here. Thank you for being a valued Envato community member.

Post Reply

Format your entry with some basic HTML. Read the Full Details, or here is a refresher:

<strong></strong> to make things bold
<em></em> to emphasize
<ul><li> or <ol><li> to make lists
<h3> or <h4> to make headings
<pre></pre> for code blocks
<code></code> for a few words of code
<a></a> for links
<img> to paste in an image (it'll need to be hosted somewhere else though)
<blockquote></blockquote> to quote somebody

:grin: :shocked: :cry: Complete List of Smiley Codes

by
by
by
by
by
by