Skip to content

special discount image regular

Grab Discount
Paymattic
  • FeaturesExpand
    • All Features
    • Paymattic for Small Business
    • Paymattic for Non Profit
    • Paymattic for e-Learning
    • Paymattic for Membership
  • Pricing
  • Integrations
  • ResourcesExpand
    • Blogs
    • Demo
    • Documentation
    • Support
    • REST API Doc
    • Account Login
Get Paymattic

special discount image regular

Grab Discount
Paymattic

How can we help you?

Popular Search subscriptionstriperecurringuserconditional

Getting Started with Paymattic

  • Paymattic Introduction 
  • How to Install and Activate Paymattic in WordPress

Form Editor

  • Add Multiple Column Containers in Forms
  • Create a Form from Scratch with Paymattic
  • How to Create a Step Form with Paymattic
  • How to Create Your First Payment Form in a Minute and Accept Payments with Paymattic?
  • How to Create WordPress Donation Form with Simple Form Templates?
  • How to Edit, Duplicate, or Delete Paymattic Forms
  • How to Use Conditional Logic in Form Fields with Paymattic?
  • How to Create PDF Feed for Form Submissions?

General Input Fields

  • How to Use the Donation & Product Fields 
  • How to Use the Payment Method Fields
  • How to Use the General Fields

Donation and Product Fields

  • Dynamic Payment Item Field 
  • Add Payment Summary Field in Forms 
  • How to Add Currency Switcher in WordPress Form?
  • How to Add Payment Item Fields in WordPress with Paymattic?
  • How to Add Subscription Payment Item Fields in Paymattic?
  • How to Add Tabular Product Item Fields in WordPress with Paymattic?
  • Add Donation Progress Item in Paymattic
  • How to Add Item Quantity Field in WordPress with Paymattic? 
  • How to Add Custom Payment Amount Field in WordPress with Paymattic?
  • How to Add Tax Calculated Amount Field in WordPress with Paymattic?
  • How to Add Coupon Field in WordPress with Paymattic
  • Donation Leaderboard in Paymattic 

Payment Method Fields

  • Configure Authorize.net in WordPress through Paymattic
  • How to Add Flutterwave Payment Gateway in Paymattic?
  • How to Integrate Xendit Payment Gateway in WordPress with Paymattic?
  • How to Integrate Square with Paymattic in WordPress?
  • How to Configure Billplz in WordPress with Paymattic?
  • How to Configure Stripe Payment Gateway in WordPress with Paymattic?
  • How to Configure PayPal in WordPress with Paymattic?
  • How to Set PayPal IPN in WordPress with Paymattic?
  • How to Integrate Mollie in WordPress with Paymattic?
  • How to Integrate Razorpay with Paymattic in WordPress
  • How to Integrate Paystack in WordPress with Paymattic?
  • How to Integrate Payrexx in WordPress with Paymattic
  • How to Integrate SSLCOMMERZ with Paymattic in WordPress?
  • How to Collect Offline Payment in WordPress with Paymattic
  • How to integrate Moneris Payment Gateway in Paymattic
  • How to Integrate Viva Wallet With Paymattic?

Global Settings

  • How to Add User Dashboard Module in Paymattic?
  • How to Configure Cloudflare Turnstile Security with Paymattic?
  • How to Configure reCAPTCHA in WordPress with Paymattic
  • How to Change Currency Settings in WordPress with Paymattic
  • How to Manage User Roles in WordPress with Paymattic?

Integrations

  • How to Integrate FluentCommunity in WordPress with Paymattic 
  • How to Integrate Google Sheets in WordPress with Paymattic?
  • How to Integrate Fluent Support with Paymattic in WordPress?
  • How to Integrate Webhook in WordPress with Paymattic?
  • How to Integrate Zapier with Paymattic in WordPress?
  • How to Integrate Slack in WordPress with Paymattic?
  • How to Integrate Telegram with Paymattic in WordPress?
  • How to Integrate Twilio with Paymattic in WordPress?
  • How to Integrate ActiveCampaign in WordPress with Paymattic?
  • How to Integrate Mailchimp in WordPress with Paymattic?
  • How to Integrate FluentCRM in WordPress with Paymattic
  • How to Create a User Registration Form with Paymattic in WordPress?

Learning Management System (LMS) Integrations

  • How to Integrate LifterLMS in WordPress with Paymattic?
  • How to Integrate LearnDash in WordPress with Paymattic?
  • How to Integrate Tutor LMS in WordPress with Paymattic?

Form Settings

  • Customize Form-Specific Payment Settings
  • How to Create Custom CSS/JS in WordPress with Paymattic? 
  • How to Set Form Scheduling and Restriction Settings in WordPress?
  • How to Customize Form Design Settings in WordPress with Paymattic?
  • How to Configure Confirmation Settings in WordPress?

Email Notification Settings

  • How to Setup Email Notifications in Paymattic WordPress Plugin?

Manage Form Entries

  • Manually Cancel Any Subscription
  • How to Manage Subscriptions in WordPress with Paymattic
  • How to Disable IP Address Logging in WordPress with Paymattic?
  • How to View Single Submission Data and Manage Payments in Paymattic
  • How to View and Manage All Form Entries in WordPress with Paymattic
  • How to Enable Stripe Payment Hold in Paymattic 

Reports & Analytics

  • How to View the Reports and Payment Analytics in WordPress?

FAQ

  • Add First & Last Name Fields Separately
  • Date Formats Customization
  • How to Fix Not Sending Email Confirmations Issue in WordPress?

Customer Profile

  • How to View Customer Profile in WordPress with Paymattic?

Import - Export

  • How to Import-Export Forms with Paymattic
  • How to Export Form Entry/Entries with Paymattic  

Change Log

  • Change Log
View Categories
  • Home
  • Docs
  • Donation and Product Fields
  • Dynamic Payment Item Field 

Dynamic Payment Item Field 

In Paymattic, the Dynamic Payment Item, an in-built calculation feature for Number and Product fields, allows users to perform real-time mathematical operations within any Payment Form. 

This article will guide you on how to embed the  Dynamic Payment Item field to the WordPress Site through Paymattic. 

Remember, Dynamic Payment Item is a premium feature and you need the Paymattic Pro Plugin to use this field.

Adding Dynamic Payment Item Field #

To learn how to add the  Dynamic Payment Item field to the Paymattic Form on your WordPress Site, follow the steps below –  

First, go to the All Forms section from the Pymattic Navbar, choose a Form, and click the Pencil/Edit icon to open the Editor page of that form.

If you do not have any existing form, read the Create a Form from Scratch or Create a Form using Templates documentation. For example, I choose an existing form to show the whole process. For example, I choose an existing form to show the whole process.

Once you open the Editor page, add the necessary fields by typing the “ / ” or clicking the Plus Icon placed at the bottom.

Remember, to add a Payment Gateway you must add at least one Product Field field.

For example, I choose the Plus Icon option to select the  Dynamic Payment Item field under the Donation & Product Fields section from the Choose Form Field page.

Also, don’t forget to add a product field (e.g., Payment Item, or Subscription Payment field)  to make the Dynamic Payment Item field functional, along with a Payment Method Field to collect payments.

Add Calculation Expression #

Now, to make the added Dynamic Payment Item field functional for the desired calculation, you need to set up the Calculation Expression in the Settings. 

To learn how to set up the Dynamic Payment Item’s Settings, follow the steps below – 

To add the Calculation Expression in the Dynamic Payment Item field according to your needs, click the Settings Icon from the right-side corner. 

You can also Edit the Field Label according to your needs using the Pencil Icon right next to the field name. 

Now, a pop-up page will appear with various settings options for customizing the field.

General Settings  #

All the Settings under the General Tab mentioned in the below screenshot are briefly explained:

A. Required: Enable this option to make this field mandatory for users to fill in for successful form submission.

B. Enable Calculation: Now, click the checkbox to enable the Calculation Feature. Then, add the desired equation under the Calculation Expression box to ensure what calculation you want to perform. 

First, click the Document Icon on the right side to add the available input fields on which you want to perform the calculation. Then, you can use the desired mathematical operators (+, -, *, /, %) in your expression. 

For example, in the screenshot below, you can see that I used the “{input.payment_item} + 5” as Calculation Expression to add a delivery charge to the items’ price. As a result, when users select an item during form-filling, they will see both the original price and the total price (including the delivery charge) for the chosen item. 

Once you finish, click the Update button to save all your configuration. 

Advanced Settings  #

Once you complete the General settings, go to the Advanced tab, and you will find some advanced settings for your  Dynamic Payment Item field. These are:

A. Admin Label: This label is used for the admin who wants to see the field’s label from the back end.

B. Field Wrapper CSS Class: This is used for adding a Custom CSS/JS for an entire field of a specific form using the Field Wrapper CSS Class element. To learn more, click here.

C. Input Elements CSS Class: This is used for adding a Custom CSS/JS for a specific input field of a form using the Input Elements CSS Class element. To learn more, click here.

D. Conditional Render: You can set conditional logic to display the field in the form that will be triggered by specific actions taken on a previous input field. To learn more about conditional renderings, click here.

E. Field ID: This option is used to add or track form fields. Plus, creating the custom CSS/JS for a specific form field.

Once you finish, click the Update button to save all your configuration. 

Embedding Form into Front-end #

Here, you can see the  Dynamic Payment Item field and other necessary fields are added to the form.

You can edit their field name and settings. To learn more about form editing, read this Documentation.

Now, to embed and display the form on a specific Page/Post, copy this Shortcode and paste it into your desired Page/Post.

Once you complete the edit, press the Save button to save all the changes you made.
Also, to see the Preview of the form, click the Eye icon.

Preview of the Dynamic Payment Item field #

Here is the preview of the  Dynamic Payment Item field in a Form.

You can see that when the user selects the Perfume Blue Item, the Dynamic Payment Item field instantly adds $5 to the original price and displays the price including the delivery charge.

Supported Mathematical Expression #

To learn more details about the use case of all available mathematical Operators supported by Paymattic to perform calculations, read the following table.

SymbolExplanation
+Addition Operator
Use Case: 2+3 = 5
–Subtraction OperatorUse Case: 2-3 = -1
/Division OperatorUse Case: 3/2 = 1.5
*Multiplication OperatorUse Case: 2*3 = 6
%Percentage OperatorUse case: 100 % 10 = 10
(Opening Parenthesis
)Closing Parenthesis
roundMake a number a decimal/integer.Use case: round(3.235723663, 2) = 3.24and round(3.235723663, 0) = 3
ceilUse case: ceil(3.235723663) = 4
floorUse case: floor(3.235723663) = 3
absUse case: abs(-4.6) = 4.6
maxUse case: max(10, 15) = 15
minUse case: min(10, 15) = 10

This way you can easily add the Dynamic Payment Item fields in Paymattic Forms!
If you have any further questions, concerns, or suggestions, please do not hesitate to contact our @support team. Thank you. 

What are your Feelings
Share This Article :
  • Facebook
  • X
  • LinkedIn
  • Pinterest
Still stuck? How can we help?

How can we help?

Updated on March 25, 2025

Powered by BetterDocs

Table of Contents
  • Adding Dynamic Payment Item Field
    • Add Calculation Expression
    • General Settings 
    • Advanced Settings 
  • Embedding Form into Front-end
  • Preview of the Dynamic Payment Item field
    • Supported Mathematical Expression
paymattic

Paymattic (formerly known as WPPayForm) is the perfect lightweight WordPress payments and donation plugin fit for your small business, online fundraiser, e-Learning or membership program.

Report a Security Issue

Payment Methods

  • Stripe
  • Paypal
  • Mollie
  • Razorpay
  • Billplz
  • Flutterwave
  • Viva Wallet
  • Paystack
  • Square
  • Payrexx
  • SSLCOMMERZ
  • Xendit
  • Moneris
  • Authorize.net

Get Help

  • Docs
  • API Docs
  • Blogs
  • Support
  • Brand Assets

Integrations

  • FluentCRM
  • Zapier
  • Mailchimp
  • Slack
  • Telegram
  • Twilio
  • Webhooks
  • LifterLMS
  • Tutor LMS
  • LearnDash
  • Google Sheets
  • ActiveCampaign
  • FluentCommunity

Subscribe to our email

Footer Newsletter
We will never spam you. We will only send you product updates and tips.

Copyright©2025 Paymattic

Affiliate Terms & Privacy

Facebook Twitter YouTube Linkedin WordPress

Let’s Begin Your Payments Journey
At Zero Cost!

Build smart form and start collecting money worldwide with the best WordPress payment and donation plugin!
Plugin Download Form
Scroll to top
  • Features
    • All Features
    • Paymattic for Small Business
    • Paymattic for Non Profit
    • Paymattic for e-Learning
    • Paymattic for Membership
  • Pricing
  • Integrations
  • Resources
    • Blogs
    • Demo
    • Documentation
    • Support
    • REST API Doc
    • Account Login