It is possible for your customers to receive login credentials to your membership area via the order confirmation email and the Digistore24 thank you page. Accordingly, you should have the ability to set up your own PHP server. You can use the licensing system feature for this.
Instructions
Step 1: Digistore24
- In the vendor view, go to Product setup > Product configuration.
- Click on the edit icon for your product.
- Go to the delivery tab.
- Select your license server from the drop-down menu.
- Enter the URL of your license server in the license server URL field.
Step 2: Configure license server
Now configure your license server. To allow Digistore24 to retrieve the login credentials, you should first enable access to your license server via an HTTP call. You can download an example of a suitable PHP server here. Then insert your thank you page key at the beginning of the script at line 73. You can find your thank you page key by clicking the user icon in the upper right corner and Edit account details in the thank you page settings. Ensure that your script retrieves the username and password from your membership system.
The following characters are allowed: a-z A-Z 0-9 – + # _ , . ; / ( ) $ % & < >. When Digistore24 makes the HTTP call to your license server, it expects the following JSON encoded dataset:
$response = array('status' => 'success','key' => 'login name:USERNAME|password:PASSWORD','data' => array(),'headline' => 'Your login credentials','show_on' => array( 'receipt_page', 'order_confirmation_email' ),);digistore_exit( $response);
Please note that USERNAME and PASSWORD are placeholders and should be replaced with the corresponding data from your membership system. You can change the text "login name," "password," and "your login credentials" as you wish. To additionally display the login credentials on the invoice, delete line 226: 'show_on' => array( 'receipt_page', 'order_confirmation_email'). The login credentials will now be automatically displayed on your order confirmation page and sent via the order confirmation email.
Useful feature: Order data transfer to license server
When Digistore24 calls your license server URL, it forwards the following data via POST:
- order_id
- product_name
- product_id
- quantity – the number of products ordered
- api_mode – ‘live’ or ‘test’ (for test orders)
- address_first_name
- address_last_name
- address_street
- address_city
- address_state
- address_zipcode
- address_phone_no
This is especially useful if you want to use the email address as a username or the address for password generation.