Purchase assets and Featured asset
Settings in this section are relevant for purchasing functionality only. You can skip this part if you're not going to switch on feature "Purchase assets" or "Featured asset"
Full configuration of Shop and Featured asset functionality includes following steps:
Configure assets to sell in WLM Asset configuration and enrich with specific purchasing properties Asset configuration for purchasing
Set one of them as features if needed Featured asset
Configure collection methods Collection methods configuration
Configure payment methods Payment methods configuration
Prepare templates for sending invoice details and purchase details to users via the email Templates for purchase details and invoice details
Also, don't forget to configure reference code template which is used both for purchase reference codes and redemption reference codes
Asset configuration for purchasing
The WLP can be used for selling a range of assets, just like a web shop for tokens. Additionally, the WLP can be configured for a custom purchase, where one token is highlighted and shown in a custom html page. Also, don't forget to configure reference code template which is used both for purchase reference codes and redemption reference codes.
Assets available in the shop
Assets sold in the WLP must first be created using WLM and afterwards be configured for WLP in the “Advanced Config Management” editor.
Each asset must be configured with the following parameters in order to be presented under "Purchase assets".
For each asset to be shown in WLP, the correct uniqueAssetId is needed to retrieve asset name, asset description, link to the publicly available asset webpage, ticker. Read more here about asset definition for the portal
Any icon can be put to an asset (optional field). The icon must be available in the blob storage and the respective path must be entered in the config file.
Icon preparation:
Asset icon should be the square picture of file type PNG; recommended size: 400*400 px
Put the icon to the blob storage associated with your tenant to the folder "trading-app-configs/icons"
Copy the path to the file
A price per Unit must be defined
Maximum amount of sparks a user can purchase
The issuer address of the asset must be defined. This is used for e.g. calculating the availability of the asset.
KYC tier which users must have in order to buy this asset. For all other users possibility to buy this asset will be closed by "Get tier N" sign. Read more about KYC configurations
Featured asset
Assets shown in the WLP custom purchase page must first be created using WLM and afterwards be configured for WLP in the “Advanced config management” editor.
Asset must be configured with the following parameters.
In difference to the purchase assets there is one additional parameter to be set.
“isFeaturedAsset” can be switched on and off, with “true” or “false”
In the customPurchaseSettings the name of the sidebarLink can be defined
The custom html must be uploaded in the blob storage in the wlp-config folder/custom-html. Then, under “customHtmlSourcePath” the link to the custom html page can be entered. Check here how to prepare custom HTML
You can use different custom HTML pages for logged in and non-logged in users. In case you don't want to differentiate them, you can provide only one HTML and use it both for "customHtmlSourcePath" and "customHtmlSourcePathLoggedIn".
Last updated