UserPro + Envato purchase code verifications

  • For those looking for API way (outside edit/registration forms) to validate any user purchase, simply do the test using 1 line :

$userpro->verify_purchase('purchase_code_to_test');

  • This is NOT required, this line is for manual/advanced integration only (Outside userpro registration) on your custom page, custom php etc. then If API returned valid (true) you can simply make the user verified via

$userpro->do_envato('userid');

  • or UNVERIFY him (wrong number)

$userpro->undo_envato('userid');

  • Very simple logic and API oriented. This is for ADVANCED integration, for easy integration you do not need that – just drag and drop the field from field list (apply it to edit profile / register).

Was this article helpful?

Related Articles

Leave A Comment?