Envato + UserPro is here! Now you can verify your customers' purchase code! – UserPro Forums https://forum.userproplugin.com/forums/topic/envato-userpro-is-here-now-you-can-verify-your-customers-purchase-code/feed/ Sun, 05 May 2024 21:39:25 +0000 https://bbpress.org/?v=2.6.2 en-US https://forum.userproplugin.com/forums/topic/envato-userpro-is-here-now-you-can-verify-your-customers-purchase-code/#post-14674 <![CDATA[Envato + UserPro is here! Now you can verify your customers' purchase code!]]> https://forum.userproplugin.com/forums/topic/envato-userpro-is-here-now-you-can-verify-your-customers-purchase-code/#post-14674 Sun, 22 Dec 2013 22:21:52 +0000 admin No need for Envato purchase code verifications or 3rd party plugins. Now you can offer support/allow registration ONLY to your Envato customers who verified their purchase license, all integrated at one UserPro profile, and single registration/edit procedure on the frontend. It integrates seamlessly!

Inspired by http://userproplugin.com/userpro/forums/topic/bbpress-envato-mojo-marketplaces-purchase-vertification/ I have added a field in the most recent version that you can use to validate Envato customers purchase.

How this can help me?

– Use it to provide support for your customers only!
– Use it to prevent registration without a valid Envato purchase code!

(an ajax check can be enabled on the field to check in real time if the provided key is valid/invalid)

This integrates UserPro + ENVATO purchases easily! A nice badge will be shown next to your customers name to help you identify your clients quickly.

Now, please go to edit your profile and verify your envato purchase. 😉 It’s not used in registration in the live demo because it’s open to all users and not just userpro customers.

API IMPLEMENTATION / ADVANCED

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. As I said 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 )

]]>