HUAWEI Wallet Kit provides two methods for generating a pass package:
Method 1:
You can generate a JSON Web Token (JWT) based on pass data (a template or an instance) through REST APIs and push the JWT to the Huawei server. When a user claims the pass, the Huawei server converts the JWT into a signed pass package and pushes this package to the device where the user has signed in. Currently, this method is only available to regions outside the Chinese mainland.
Each pass consists of fixed merchant information (called template) and user's personalized information (called instance). Templates can be pushed to the Huawei server through the REST API before passes are issued. When a user claims a pass, only an instance and its associated template ID need to be sent to the Huawei server.
Changes of merchant information can be implemented for all passes by template update.
Users can view and manage claimed passes in HUAWEI Wallet. When a user deletes a pass, it will be deleted from all devices where it has been claimed.
*Note: Currently, this method is only available to regions outside the Chinese mainland.
Method 2:
You can generate a signed pass package on your server and directly push it to HUAWEI Wallet through the HMS Core Wallet SDK ("Wallet SDK").
Whenever a pass that has been claimed by a user should be changed, you can update the pass through the pass update process.
*Note: This method is currently only available in the Chinese mainland.