Skip to main content
Bit Form – Payments

Subscription Payments

Estimated reading: 10 minutes 32 views

Summary: Set up recurring subscription payments in WordPress forms with Bit Form: plans, free trials, setup fees, renewal emails and cancelling for every gateway.

Bit Form – Subscription Payments

A subscription charges the visitor now and then again on a schedule, for example every month, until it is cancelled or ends. Use it for memberships, courses, donations that repeat and any service billed by the period. Every payment field in Bit Form can take subscriptions: Stripe, PayPal, Razorpay, Mollie, Square and Authorize.net. You set the plan in the form, Bit Form starts the subscription at the payment provider, and each entry shows the subscription’s status and payments.

Availability: Bit Form Pro 3.6.0 or later.

Requirements for subscription payments

  • Bit Form Pro 3.6.0 or later.
  • A form with a payment field whose account is connected in Bit Form → App Settings → Payments. See the setup doc of your gateway under Payments.
  • An email field in the form, so the customer can receive receipts and failed payment emails.
  • For Razorpay, Square and Authorize.net, a webhook added at the provider so renewals are recorded as they happen (see Renewal events). Stripe and PayPal set theirs up automatically, and Mollie needs none.

Turn a payment field into a subscription

The example below is a membership form with Full Name, Email Address and a Stripe field that charges 15.00 USD every month after a 14-day free trial. The same settings appear in the other payment fields.

  1. Open the form in the form builder and click the payment field.
  2. On the Basic tab, open Payment Type and choose Subscription.
  3. In Plan, set the price and how often it is billed.
  4. In Trial, Fee and Length, add a free trial, a setup fee or a number of payments, if you need them.
  5. On the Advanced tab, check Subscription Customer and Subscription Emails.
  6. Click Update Form.
Stripe payment field payment type set to subscription with renewal events connected, and the plan panel with price set the price here, fixed amount 15. 00 usd billed every 1 month
  1. Payment Type: One-time charges the visitor once; Subscription charges now and then on a schedule until it is cancelled or ends. Under it, the renewal events status shows whether the provider can tell Bit Form about renewals.
  2. Plan: the price and the schedule of each payment.

Plan settings

Price decides where the plan comes from:

PriceWhat it doesGateways
Set the price here (default)You enter the amount and the schedule in the field.All
Use a Stripe price, Use a PayPal plan or Use a Razorpay planUses a recurring price or plan you made at the provider. Pick it in Select a price, which lists the active recurring prices or plans of the field’s account. Choose the account first.Stripe, PayPal, Razorpay
Let the visitor chooseThe visitor picks a plan in a Radio Button or Dropdown field of the form.All

With Set the price here:

  • Fixed amount charges the same amount every period. Enter it in the Amount box, for example 15.00. From a field takes the amount from a Radio Button, Number or Currency field, with optional Minimum and Maximum (No limit by default).
  • Bill every: a number and day(s), week(s), month(s) or year(s). The default is every 1 month. The longest gap is one year: 365 days, 52 weeks, 12 months or 1 year.

With Let the visitor choose, select the Plan field, then decide for each of its options what it starts: An amount with its own Bill every, a plan made at the provider (Stripe, PayPal and Razorpay), or No plan (refused) for an option that must not start a subscription.

Schedules each gateway can bill

Some providers bill only certain schedules. The builder does not stop you from saving another schedule, but the visitor then sees an error when they try to pay, so pick one from this table:

GatewaySchedules
Stripe, PayPal, MollieAny schedule up to one year.
RazorpayAny schedule up to one year; a daily schedule must be at least every 7 days.
SquareEvery day, week or two weeks, every 30, 60 or 90 days, or every 1, 2, 3, 4, 6 or 12 months.
Authorize.netEvery 7 to 365 days (weeks are counted as days) or every 1 to 12 months.

Trial, Fee and Length

Trial, fee and length panel with free trial 14 days, end after until cancelled and setup fee none
  • Free trial (days): days before the first payment, from 0 to 730. Empty means No trial.
  • End after (payments): the number of payments after which the subscription ends, up to 999. Empty means Until cancelled.
  • Setup fee: an amount charged once with the first payment, even during a free trial. Empty means None.

For a PayPal plan made at PayPal, these terms are hidden: they are the plan’s own, as set at PayPal.

Renewal events

Renewals happen at the provider, without the visitor. The provider tells Bit Form about each renewal, failed payment and cancellation by sending events to your site’s webhook address, https://your-site.com/wp-json/bitform/v1/payments/<gateway>. The status under Payment Type shows whether these events arrive:

  • Renewal events connected: an event arrived in the last 35 days.
  • Renewal events not connected: click Check again after fixing the webhook.
  • Renewal events: set up at the provider: add the webhook yourself, as shown below. It reads as connected once the first event arrives.
GatewayWebhook
StripeAdded automatically when the account is saved.
PayPalAdded automatically. Your site must use https, and a PayPal app can have at most 10 webhooks.
MollieNothing to set up: Mollie is told where to send events with each payment.
RazorpayAdd it in the Razorpay Dashboard (Accounts & Settings, Webhooks) with the events subscription.activated, subscription.charged, subscription.pending, subscription.halted, subscription.cancelled, subscription.completed, subscription.paused and subscription.resumed.
SquareAdd it in the Square Developer Console (Webhooks, Subscriptions) with the events subscription.updated, invoice.payment_made and invoice.scheduled_charge_failed.
Authorize.netAdd it in the Authorize.net Merchant Interface (Account, Webhooks) with the events net.authorize.customer.subscription.suspended, .terminated, .cancelled, .expired and net.authorize.payment.authcapture.created.
Authorize. Net subscription field showing renewal events: set up at the provider, the webhook address and the events to add in the authorize. Net merchant interface

The field shows the exact address and events to copy (1). Until the webhook is in place, renewals and failed payments are still recorded by a daily check, so nothing is lost; they only appear later. The daily check uses WP-Cron.

Subscription Customer

Subscription customer panel with email field automatic: email address, name field and product name on the receipt
  • Email field: the customer’s email. The default, Automatic, uses the form’s first email field. Without an email field the customer still pays, but gets no emails from the form, and the provider cannot send its own receipts.
  • Name field: the customer’s name, saved with the customer at the provider.
  • Product name on the receipt: the name of what is sold. Empty uses the form’s name. Hidden when the plan is made at the provider, which has its own name.

Subscription Emails

Subscription emails panel with emails to the customer for a failed payment and each renewal, emails to admin for a failed payment and a cancelled subscription, and the smart tag note
  1. To the customer: A payment failed, with a link to update the card (on by default) and Each renewal payment (a receipt) (off by default). They go to the Subscription Customer email.
  2. To admin: A payment failed and A subscription was cancelled, both on by default. They go to the template’s To, CC and BCC, or to the site admin email when the template has no To.
  3. The Smart Tags for subscription emails, under Smart Tag Fields › Subscription in the template editor.

Each email uses the Built-in message or one of the form’s email templates. Click + (New template from the built-in message) to start a template from the built-in text, or Edit this template after choosing one. A template used here is not sent when the form is submitted, and it carries a Subscription badge in the template list. No cancellation email is sent to admin for a subscription that was never paid.

These Smart Tags fill subscription emails. The manage link also works in the form’s confirmation message and its submission emails:

Smart TagShows
${bf_subscription_amount}The plan price, for example 49.00 USD.
${bf_subscription_payment}The amount of the payment the email is about, for example a renewal.
${bf_subscription_status}The status, such as Active, Past due or Cancelled.
${_bf_subscription_manage_url}The customer’s link to manage the subscription.

What the visitor sees

The pay button shows the plan after its text, for example $15.00 every month, after a 14-day free trial. When the visitor pays, Bit Form saves the answers, starts the subscription at the provider and submits the form once the first payment, or the card for the trial, is confirmed. If the tab is closed after paying, Bit Form finishes the entry about 30 minutes later.

  • Mollie: a subscription is paid by card, because its first payment sets up the card Mollie charges each period.
  • Square: Google Pay and Apple Pay pay once, so a subscription is paid by card.
  • Stripe: if a visitor leaves a free trial before giving a card, that trial is cancelled when it ends, with no emails.

Manage a subscription from the entry

Open the entry in Entries. The Payment section shows the subscription:

Entry payment section for a stripe subscription with the free trial status, plan, start, trial end, next payment, payments count, subscription id, payment history and the copy customer link and cancel subscription buttons
  1. The status: Awaiting first payment, Free trial, Active, Payment failed, retrying, Paused, Cancelled or Ended.
  2. The plan, when it started, when the trial ends, the next payment (or when it ends, was cancelled or ended), the number of payments and the provider’s subscription ID.
  3. Payment history: each payment’s date, amount, status and receipt.
  4. Copy customer link and Cancel subscription.

Copy customer link copies the page where the customer can change their card or cancel: the Stripe customer portal, the PayPal automatic payments page or the Razorpay subscription page. For Mollie, Square and Authorize.net, the link shows Please contact the site owner to change or cancel your subscription.

Cancel subscription asks how to cancel. It needs the permission to edit entries.

Cancel subscription window asking whether to cancel at the end of the paid period or now, with the cancel now and at period end buttons
  • At period end: the customer keeps what they paid for until the end of the period.
  • Cancel now: the subscription stops at once.

Neither makes a refund. Only Stripe tells the two apart: PayPal, Mollie, Razorpay and Authorize.net always cancel at once, and Square always cancels at the end of the period.

Limitations

  • Bit Form Pro only.
  • The longest billing gap is one year, and Square and Authorize.net bill only some schedules.
  • Plans made at the provider are available for Stripe, PayPal and Razorpay only.
  • Refunds are not made from Bit Form. Refund a payment at the provider.
  • The daily check that records missed events uses WP-Cron and checks up to 50 subscriptions each run.

Troubleshooting

Renewals do not appear in the entry

Check the renewal events status under Payment Type. If it says set up at the provider or not connected, add or fix the webhook with the address and events the field shows, then click Check again. Until then, the daily check records renewals later.

The visitor sees “Square cannot bill this schedule.”

The plan’s Bill every is not a schedule Square supports. Choose one from Schedules each gateway can bill.

The customer gets no emails

Check that the form has an email field and that Subscription Customer → Email field points at it. The failed payment and renewal emails also depend on renewal events reaching your site.

FAQ

Can the visitor choose between a monthly and a yearly plan?

Yes. Add a Radio Button or Dropdown field with the plans, set Price to Let the visitor choose, select that field as the Plan field and give each option its amount and schedule.

Can I charge a joining fee?

Yes. Enter it in Setup fee. It is charged once with the first payment, even during a free trial.

Can a subscription end on its own?

Yes. Set End after (payments). The entry then shows Ended after the last payment.

Can I test subscriptions?

Yes. Connect the account in test or sandbox mode and pay with the provider’s test cards, such as 4242 4242 4242 4242 for Stripe.

Related documentation

Share this Doc

Subscription Payments

Or copy link

CONTENTS
Before you go
The #1 Affordable Form Plugin in the Industry

10,000+

Trusted Businesses

5 Star Rated

on WordPress.org
shield
No Risk: Get a “No-Questions-Asked” refund if Bit Form is not the right fit for your project.

Subscribe

×
Cancel