Handle Recharge Completion
Overview
Once a user completes the payment on the UMIVERSE platform, the platform will send a notification to the merchant’s configured callback URL. The game can use this notification to process the recharge result.

Callback Notification Format
The UMIVERSE platform sends the following information to the merchant’s callback URL:
Signature Verification
To verify the authenticity of the notification:
1. Concatenate the values in the params object into a string (excluding sign).
2. Append the current timestamp (ts) and the secret key (UMI-API-SECRET) to the string.
3. Generate the MD5 hash and compare it to the sign value in the notification.
Example Notification Handler:
Recharge Workflow Summary
1. Initiate Recharge Request:
• The game iframe sends a postMessage with recharge details to the UMIVERSE platform.
2. User Completes Payment:
• The UMIVERSE platform presents the payment interface to the user.
3. Process Recharge Notification:
• The UMIVERSE platform sends a callback to the configured URL upon payment completion.
• The game server verifies the notification and updates the user’s account accordingly.
Last updated