Pricing Configuration
Learn how to configure pricing plans in your ShipNow application.
Overview
ShipNow uses a flexible pricing configuration system that supports:
- 💰 Monthly, yearly subscription, one-time payment
- 💵 Multiple pricing groups
- 🎯 Featured plans highlighting
Configuration Structure
Pricing plans are configured in the translation files (e.g., messages/en.json
). Here's the complete structure:
Plan Configuration
Each plan supports the following options:
Core Properties
id
: Unique identifier for the planname
: Display name of the plandescription
: Brief description of the planfeatured
: Boolean to highlight this planfeatures
: Array of features included in the plan
Pricing Options
Plans can have one or more pricing types:
-
monthlyPricing
: Monthly billing configuration -
yearlyPricing
: Yearly billing configuration -
oneTimePricing
: One-time payment configuration
Group Configuration
Groups allow you to organize different pricing options:
Supported group types:
monthly
: Monthly billingyearly
: Annual billingoneTime
: One-time payments
Display Rules
- Group switcher is hidden if only one group exists
- Plans without pricing for the selected group are hidden
- Featured plans are highlighted in the UI
Multi-language Support
When adding or updating plans:
- Define the base configuration in
messages/en.json
- Copy and translate to other language files (e.g.,
messages/zh-CN.json
) - Ensure all plan IDs match across languages
- Update all language files when changing plan structure
Payment Links
ShipNow supports direct payment links for any pricing type. When configured, clicking the "Buy Now" button will redirect users to the link instead of creating a new checkout session.
Configuration
Add a link
property to any pricing configuration:
Use Cases
- Display a "Contact Us" button for the "Enterprise" plan, which opens an email when clicked.
- Create a limited-time offer payment link for new products to test market response.