GraphicRiver

How to get the item purchase code for my own items

colibriinteractive
colibriinteractive Recent Posts
Threads Started
5 posts
  • Sold between 10 000 and 50 000 dollars
  • Germany
  • Exclusive Author
  • Has been a member for 2-3 years
  • Bought between 10 and 49 items
  • Referred between 10 and 49 users
colibriinteractive says

Hi, I set up a support forum and want to test the user set up function for that forum. As users need to enter there item purchase code to get access to the forum I’m stuck right now.

How can I get the purchase code for items where I’m the author without buying them from myself??

Thanks for any replies, CI

2333 posts
  • Grew a moustache for the Envato Movember competition
  • Community Moderator
  • Elite Author
  • Contributed a Blog Post
  • Won a Competition
  • Repeatedly Helped protect Envato Marketplaces against copyright violations
  • Has been a member for 4-5 years
+8 more
dtbaker moderator says

Just setup a demo purchase code for each of your items. Then in your php code you can just look for your demo purchase code before going to the api.

if($code == "my-unique-purchase-code"){
   // this is a demo verification.
}else{
   // verify the $code via the envato api
}

then just cross your fingers and hope it works with the customer accounts :)

colibriinteractive
colibriinteractive Recent Posts
Threads Started
5 posts
  • Sold between 10 000 and 50 000 dollars
  • Germany
  • Exclusive Author
  • Has been a member for 2-3 years
  • Bought between 10 and 49 items
  • Referred between 10 and 49 users
colibriinteractive says

Sounds good, I’ll give it a try. Thanks so far and thanks for the quick response!

by
by
by
by
by