Miniwall Docs
Editor

Plan cards and buttons

Add plan cards, give each a package ID, and decide what each button does.

Use this page when a screen sells a plan, asks a question or moves the visitor on. A plan card carries a package ID. A button carries an action.

In your code

Your site passes the price for each package ID in products and gets the plan the visitor picked in onPurchase. Buttons that run your code arrive in onAction with their action ID. Details: Packages and pricing and Actions and links. Miniwall shows the screen. It does not take payment.

Add plan cards

Open Components. In Purchase, add a Package (a plan card) for each plan, and a Purchase button.

Select a plan card. In the Design panel, under Package, select the button that reads Set package ID.

In the Package ID box, type an ID such as monthly, or pick one of the suggestions. Select Save ID.

The Monthly plan card selected on the phone preview, with the Design panel showing the Package section and the package ID monthly.The Monthly plan card selected on the phone preview, with the Design panel showing the Package section and the package ID monthly.
  1. The selected plan card.
  2. Its package ID, in the Package section of the Design panel.

Rules for the ID:

  • Letters, numbers and _ $ . -, up to 64 characters.
  • Each card needs its own ID. If you reuse an ID, the box says so and moves it from the other card.
  • Turn on Selected by Default for the card that starts selected.

The canvas shows example prices. Your site passes the real ones. Plan cards and a Purchase button go together: a screen with one but not the other cannot be published. Every card needs a package ID too.

Set what a button does

Select a button on the canvas, or add one from Components (Button in Interactive). In the Design panel, find Action and open Type.

The Design panel for a selected button with the Type list open, showing Run your code, Go to another screen, Back to previous screen, Close the screen and more.The Design panel for a selected button with the Type list open, showing Run your code, Go to another screen, Back to previous screen, Close the screen and more.
Open Type under Action to choose what the button does.
ChoiceWhat it does
Run your codeSends an Action ID to your site. Your code decides what happens.
Go to another screenOpens another screen of the project. See Build a flow with questions.
Back to previous screenReturns to the screen before this one.
Close the screenCloses the screen.
Open Terms of Service, Open Privacy Policy, Open Custom URLOpens a link. Set the URL and the Open Method.
Restore PurchasesRestores purchases. It only shows on sites that pass onRestore to the SDK, and the canvas hides it.

For Run your code, type the Action ID your site listens for, such as get_started. It is lowercase, starts with a letter and uses letters, numbers and _ . -.

The Action section of a button with Run your code chosen and the Action ID field filled with get_started.The Action section of a button with Run your code chosen and the Action ID field filled with get_started.
  1. The Action ID your site handles.

A Run your code button without an ID blocks publishing. The editor tells you which buttons to fix. See Preview, publish and go live.

Next: Variables and languages.

On this page