Fungies.io Help Center
  • 🙌Getting Started
  • Customize your online store
    • General Settings
    • Header
    • Footer
    • Add New Page
    • Add Page Section
    • Text Section
    • Image Section
    • Video Section
    • Gallery Section
    • Points Section
    • Slider Section
    • Recent Products Section
    • Custom Style
  • Add Subscription Product
  • Add Digital Downloads
  • Add Game Keys
  • Add Mobile Game Assets
  • Variants of the product
  • 🛠️Workspace Settings
    • Connect your Stripe account
    • Sandbox Mode
    • Team Management
  • 🧮Store Settings
    • Publish your store
    • Previewing The Store
    • Edit Explore / Search Page (Built-in)
    • Edit Product Page (Built-in)
      • Customize Review Categories
    • Set up Custom Domain
      • Migrating your domain to Cloudflare
  • Tax-inclusive Pricing
  • 🤑Getting Paid
    • Test Payments
    • Checkout Choice
      • Hosted Checkout
      • Overlay Checkout
      • Embedded Checkout
    • Global Availability
    • Customer Payment Methods
      • PayPal Settings
    • Billing Details
    • Payouts
    • Editing Statement Descriptor
    • Transactions Reports
    • Example React checkout
  • 👨‍💻FOR SAAS DEVELOPERS
    • Hosted Checkout (more payment methods)
    • Editing and Pausing Subscriptions
      • Downgrading / Upgrading Subscriptions
    • Creating Plans
    • Free Trials and Custom Intervals
    • Redirecting After Purchase
    • Using Webhooks
    • Types of Webhooks
      • Payment Success
      • Payment Refunded
      • Payment Failed
      • Subscription Created
      • Subscription Interval
      • Subscription Updated
      • Subscription Cancelled
    • Getting Started with the API
    • Orders APIs
      • Managing Orders through API
      • Orders List
      • Cancel Order
      • Update Order
    • Managing Subscriptions through API
    • Managing and Creating Users through API
    • Customizing Subscription Confirmation Page
    • Using CustomFields to parse data from your Software / App
      • Parse e-mails from your Software directly to checkout URL
  • Additional charges on top of Subscriptions
  • Upgrading or Downgrading Plans with API
  • Using Fungies.js npm package
    • Next.js 15 integration guide
  • 🎮For Game Developers
    • Orders
    • Platform Fees
    • Users list
    • Integrating with Game's Back-end
    • Customizing Purchase Confirmation Page
    • Webhooks
  • 💲Selling
    • Payment history
    • Selling FREE products
    • Managing Game Keys
    • Managing Game Assets
    • Pricing
    • Fulfillment of Orders
    • Prohibited Business and Products
    • Invoices and Receipts
    • Google Merchant Center XML Feed
    • SEO Sitemap
  • 🚀Marketing
    • Integrations
      • Google Tag Manager
      • Google Merchant Center
      • Trustpilot
      • Google Analytics (via Google Tag Manager)
    • SEO
    • Discount Codes
    • Pricing Localization
    • Language Localization
    • E-mail Marketing
  • 💰Billing
    • Plans and Usage
    • Invoices
    • Payment Methods
  • 🤩For End-Users
    • How to manage your Subscription?
    • How to buy a Game Key?
    • How to buy a Mobile Game Asset?
    • Getting your product
    • Steam key activation
    • Searching for games
    • Product details page
    • Order details
    • Refunds and chargebacks
  • 🗃️Other
    • FAQ
    • Roadmap
    • Product Changelog
  • 📃Legal
    • General Terms of Use
    • SaaS Terms of Use
    • Privacy Policy
    • Cookies and Tracking
Powered by GitBook
On this page
  • Custom Fields for Products, Subscriptions, and Overlays
  • Custom Fields Overview
  • Redirecting Customers with Custom Fields (Hosted Checkout Example)
  • Embedding Overlays with Custom Fields
  • Receiving Custom Fields in Webhook Notifications
  • Custom Fields Validation Options
  • Summary
  • Next Steps
  1. FOR SAAS DEVELOPERS

Using CustomFields to parse data from your Software / App

This article is intended for developers who would want to redirect users from their application or software to a Hosted Checkout / Overlay Checkout - and recognize the User's ID.

PreviousCustomizing Subscription Confirmation PageNextParse e-mails from your Software directly to checkout URL

Last updated 19 days ago

Custom Fields for Products, Subscriptions, and Overlays

Define Custom Fields for products, subscriptions, and overlays to add flexibility in handling custom metadata for each resource. This document provides instructions on configuring these Custom Fields effectively, including examples and screenshots for better understanding.

Custom Fields Overview

Custom Fields allow you to add additional metadata to products, subscriptions, or overlays. This metadata can include internal IDs, customer notes, or any other information that helps streamline transaction management.

Custom Fields can be defined at both the project level and the individual product level. Product-level Custom Fields take precedence over project-level Custom Fields, allowing more specific data, such as a user's internal ID, to be passed throughout the transaction process and returned via webhook notifications.

Where to Use Custom Fields

  • Products: Define Custom Fields for individual products in addition to existing project-level Custom Fields.

  • Subscriptions: Use Custom Fields to manage subscription-specific information for users.

  • Overlays: Add Custom Fields to overlays, which can be validated using regular expressions (regex) or a validation API.

Redirecting Customers with Custom Fields (Hosted Checkout Example)

Attach Custom Fields as query parameters when redirecting customers to the platform for transactions. This allows custom data (e.g., a user ID) to be included in the checkout process and sent back via webhook upon completion. NOTE: All defined custom fields are required and must pass validation.

Custom Field Validation Failure

If custom field validation fails during checkout, the user will be informed, and they will not be able to proceed further until the validation passes.

Example URL with Custom Fields:

This data will be included in the webhook payload, making it easy to track and manage transactions in your app.

Embedding Overlays with Custom Fields

Custom Fields can be used when embedding overlays. These fields can be validated according to predefined rules using either regex validation or a custom validation API.

Process Overview:

  1. Define Custom Fields and choose a validation method.

  2. Add these fields when embedding an overlay.

  3. The fields will be validated before the overlay is displayed, based on your configuration.

Receiving Custom Fields in Webhook Notifications

Upon transaction or subscription completion, the Custom Fields are sent to your server through webhook notifications. This allows for seamless integration of user tracking or other metadata without requiring extra lookups.

Webhook Payload: This is an example of a webhook payload that demonstrates the structure of Custom Fields. It illustrates how data such as user IDs and server names can be passed through the transaction process and returned via the webhook for tracking and integration.

Custom Fields Validation Options

When defining Custom Fields for products, subscriptions, or overlays, you have two main validation options:

  • Regex Validation: Define a regular expression to ensure the data format is correct (e.g., a phone number or email address).

  • Validation API: Provide an API endpoint to validate the customField values in real-time. You can also set a secret key to prevent unauthorized access to your validation API. Validation passes when the endpoint returns a code 200; any other code is recognized as a validation failure.

These options help you control the data being submitted, preventing invalid information from causing issues.

Summary

  • Custom Fields can now be defined for products, subscriptions, and overlays individually, in addition to project-level configurations. Product-level custom fields are prioritized over project-level custom fields.

  • Attach Custom Fields as query parameters for user redirects involving transactions or embedded overlays.

  • The Custom Fields are included in webhook responses for easy integration with your systems.

  • Use regex or API validation to ensure the data integrity of Custom Fields.

  • Remember the custom fields should be in JSON Format, like e.g.

data-fungies-custom-fields='{"user_id":"123"}'

Next Steps

To configure Custom Fields, navigate to the product, subscription, or overlay settings and define the necessary fields. Ensure that appropriate validation rules are set up, and test webhook payloads to verify accuracy and completeness.

If you have any questions, check out our or reach out to our for assistance.

👨‍💻
https://my-fungies-store.com/subscribe/9813eb2e-2305-4fa1-8096-9646bd8e63e8?user_id=sbs000001&server_name=sbs_europe
developer documentation
support team
Finding and editing CustomFields for your Subscription products
Custom Fields will be parsed from your app by URL parameter and be visible to the end-user
Overlay button with parsed URL parameters for user_id
Sample Webhook response with customFields parsed from your app
Defining custom fields