How to Add a Price Field to a Stripe Payment Button

Variable Price is an add-on for the WP Stripe Checkout plugin that can be used to add a price field to your Stripe payment buttons. This lets buyers set the amount they will pay for your products. It can also be used for accepting Stripe donation payments.

accept variable price amount using the stripe payment gateway

How to Enable Variable Pricing

If you are using the “wp_stripe_checkout_session” shortcode in the Stripe Checkout plugin, you can change it to the following to enable variable pricing.

[wp_stripe_checkout_session name="My Product" price=""]

Leaving the price parameter empty implies that you wish to let buyers enter a custom amount for this item.

When the button for this product is rendered on the front end, a price input field will appear that will let buyers set the amount they want to pay.

variable price amount field using the stripe checkout plugin

The default label for the price field (Amount) can be customized in the add-on settings (Stripe Checkout > Variable Price).

price amount field label customization in the wp stripe checkout variable price extension

You can also customize the label for each button in the shortcode.

[wp_stripe_checkout_session name="My Product" price="" variable_price_label="Enter an amount:"]

Price Options

In addition to the pay what you want feature, the add-on lets you create a predefined set of prices.

[wp_stripe_checkout_session name="My Product" variable_prices="1.99, 2.15, 3.45"]

Buyers will be able to select an amount to pay for an item.

variable price options in the button using the wp stripe checkout wordpress plugin

Get the Variable Price Add-on

WP Stripe Checkout Variable Price
WP Stripe Checkout Variable Price
Allow buyers to pay their desired amount for your Stripe payment buttons.

Note:
* Do not purchase before setting up the core plugin first. The add-on is not at fault if the core plugin does not work on your website.
* Do not purchase if you are not sure about a feature, contact us instead.
* Do not purchase to ask for more features or make the product work in a certain way.
* Do not try to scam us, we take it seriously. We are contributing to the WordPress community with free plugins and themes. If you cannot appreciate this our product is not the right choice for you.
* There is no refund/cancellation as it is a digital product.

Price: $39.99

5 thoughts on “How to Add a Price Field to a Stripe Payment Button”

  1. Can I change the label?

    Reply
    • @Robert, Yes, you can customize it in the add-on settings.

      Reply
  2. Hello,
    Can I use this Add-On for recurring payments?
    Best regards,

    Reply
    • @Cyrille, This is for one-time payment only.

      Reply
  3. if a client select optins of a product and is a price X, how can i create a lik with the price fom the user choises? variable product.

    Reply

Leave a Comment