- United Kingdom
- Sold between 10 000 and 50 000 dollars
- Exclusive Author
- Most Wanted Bounty Winner
- Interviewed on the Envato Notes blog
- Referred between 10 and 49 users
- Bought between 10 and 49 items
- Microlancer Beta Tester
- Has been a member for 1-2 years
Hi Guys,
I am looking into the envato api system and there is something puzzling me.
How can i test the purchase verification?
As the author does not get the buyers verification number and the payment verification api section requires The authors username and the purchase verification.
So is there no way of testing this?
- United Kingdom
- Community Superstar
- Attended a Community Meetup
- Repeatedly Helped protect Envato Marketplaces against copyright violations
- Sold between 5 000 and 10 000 dollars
- Has been a member for 2-3 years
- Microlancer Beta Tester
- Bought between 100 and 499 items
- Referred between 10 and 49 users
I believe you can test with something you have downloaded (thats made by another author) because you use the purchasers API code can purchase code.
If Envato is listening, purchase verification is a PITA because of the privacy policy.
This should be a real thing:- If author is logged in
- View any user profile
- See if, which, when, and how many items of mine they have purchased
The API should return the same info just as easily. It’s incomprehensible that authors have no right to know who their customers are, but Envato does.
Don’t know of any other way than buying one of your files from a separate account.
- Envato Staff
- Reviewer
- Sold between 10 000 and 50 000 dollars
- Author was Featured
- Item was Featured
- Has been a member for 4-5 years
- Bought between 50 and 99 items
- Contributed a Tutorial to a Tuts+ Site
- Beta Tester
digitalimpact saidThis is the way how I test it. Don’t think there is any other way
Don’t know of any other way than buying one of your files from a separate account.
Check this article for more information on how to use the API :
http://net.tutsplus.com/tutorials/how-to-use-the-latest-updates-to-the-marketplace-api/- United Kingdom
- Sold between 10 000 and 50 000 dollars
- Exclusive Author
- Most Wanted Bounty Winner
- Interviewed on the Envato Notes blog
- Referred between 10 and 49 users
- Bought between 10 and 49 items
- Microlancer Beta Tester
- Has been a member for 1-2 years
Philo01 said
digitalimpact saidThis is the way how I test it. Don’t think there is any other way
Don’t know of any other way than buying one of your files from a separate account.![]()
This surely isn’t right? surely Envato should be able to offer an api that works without having to corrupt it by fake purchasing.
i am sure that is possible you just need a further research, because when any buyer of a file comments to that file thy are tagged as buyer. so if you get to know how this is done you are set.
- Envato Staff
- Reviewer
- Sold between 10 000 and 50 000 dollars
- Author was Featured
- Item was Featured
- Has been a member for 4-5 years
- Bought between 50 and 99 items
- Contributed a Tutorial to a Tuts+ Site
- Beta Tester
Another option is to use test data. This is how the API response looks like (after json_decode):
stdClass Object
(
[verify-purchase] => stdClass Object
(
[buyer] => john
[created_at] => Wed Jan 01 01:00:00 +1100 2012
[licence] => Regular Licence
[item_name] => Item Name
[item_id] => 123456
)
)
The API response format is JSON , this is how a verified purchase will look like:
{"verify-purchase":{"buyer":"john","created_at":"Wed Jan 01 01:00:00 +1100 2012","licence":"Regular Licence","item_name":"Item Name","item_id":"123456"}}- United Kingdom
- Sold between 10 000 and 50 000 dollars
- Exclusive Author
- Most Wanted Bounty Winner
- Interviewed on the Envato Notes blog
- Referred between 10 and 49 users
- Bought between 10 and 49 items
- Microlancer Beta Tester
- Has been a member for 1-2 years
sushipasta said
Is there a purchase code for testing purposes? It seems silly that I’ll have to buy something just to test their API .
Not for what I can see
