You can easily automate the order process of your product using Cryptlex Web API. The API can be used with any payment processor. We have examples available on Github in
PHP which you can tailor as per your requirements:
Following are the steps to automate the process:
Each payment processor (like Paypal, FastSpring, Stripe, 2Checkout, Authorize.net etc.) has its own notification API. You can configure any server script (PHP, Node.js etc.) URL endpoint, which the notification API invokes on successful payment, and passes along other user data.
So depending on your payment processor you need to set the path for the same. Lets call the script
generate-license.php. So the sample path would look like:
generate-license.php is invoked by your payment processor, you get access to all the payment and customer related data which your payment processor passes after the successful payment.
generate-license.php generates license key for your customer and returns it to your payment processor. It also creates a user in Cryptlex using the customer details present in the request.
After the license key is generated, either your payment processor will send an email or you can create an email template to send the license key to your customer.
Alternatively, you can also use webhooks to send the email by writing a simple mail script or by using any third party mailing service like SendGrid, MailGun etc.