General information

You can monetize your game by selling your own virtual currency through the Metaframe widget. To do this, configure the Wallet section in the widget.

User flow

  1. The user clicks on the Wallet icon in the Metaframe widget.
  2. In the Wallet section of the currency block, the user clicks on the purchase button.
  3. In the opened catalog of virtual currency packages, the user selects a currency package and proceeds to the purchase.
  4. The user makes a payment using Xsolla Pay. The purchased currency is displayed in the user’s balance in the Wallet section of the Metaframe widget.
  5. The user purchases in-game items or services using the acquired virtual currency. After the purchase, the balance of the virtual currency in the wallet decreases.

Integration flow

  1. Integrate Metaframe.
  2. Connect Xsolla Pay.
  3. Add the Wallet section to the widget:
    1. Open your project in Publisher Account.
    2. In the side menu, click Metaframe.
    3. In the Virtual currencies panel, click the Enable virtual currencies toggle.
  4. Create virtual currency packages in Publisher Account.
  5. Set up webhooks in the Publisher Account.
  6. Configure user virtual currency management using API methods.
  7. Test the virtual currency purchase process.
Was this article helpful?
Thank you!
Is there anything we can improve? Message
We’re sorry to hear that
Please explain why this article wasn’t helpful to you. Message
Thank you for your feedback!
We’ll review your message and use it to help us improve your experience.
Last updated: October 10, 2024

Found a typo or other text error? Select the text and press Ctrl+Enter.

Report a problem
We always review our content. Your feedback helps us improve it.
Provide an email so we can follow up
Thank you for your feedback!