Enable Dynamic Recurring Payments
This article will discuss how to enable dynamic recurring payments on your form.
Dynamic payments mean that you link form items such as dropdown menus, radio buttons, input fields, or even hidden fields to get passed to PayPal or Stripe. In this case we will link form items that can be used to control recurring payment values, such as the billing cycle.
If you don’t want to link form items to recurring values you can instead set fixed values in the static section.
In this example we will link a dropdown menu to the recurring amount and description.
1. On the Form tab make a dropdown menu. The different options contains all the parameters needed. The different parameters are separated by pipes which look like |.
Here is an example of a dropdown menu:
[select menu-774 “Item 1 – Pay Monthly|7.25|1|month|0” “Item 2 – Pay Weekly|10.75|2|week|10” “Item 3 – Pay Yearly|60.25|1|year|3”]
In the example for the first option, Item 1 – Pay Monthly is the name of the option,7.25 is the amount, 1 is the billing frequency, month is the period, and 0 means that billing will go on forever. So this example would result in $7.25 billed every month forever.
In the example for the second option, Item 2 – Pay Weekly is the name of the option, 10.75 is the amount, 2 is the billing frequency, week is the period, and 10 means that the billing will continue for 10 cycles. So this example would result in $10.75 billed every 2 weeks for 10 installments.
In the example for the third option, Item 3 – Pay Yearly is the name of the option, 60.25 is the amount, 1 is the billing frequency, year is the period, and 3 means that the billing will continue for 3 cycles. So this example would result in $60.25 billed every 1 year for 3 installments.
What options can you use?
- For the amount, you can pass any amount.
- For the billing frequency, you can pass 1-52.
- For the period, you can use day, week, month, year.
- For the number of cycles, you can use 0 and 2-30. Using 0 will mean that the billing will continue forever. This option is only available for PayPal, Stripe will ignore the number of cycles and bill everything forever.
Please note that for Stripe: A maximum of one year interval is allowed (1 year, 12 months, or 52 weeks). For PayPal: A maximum of 5 year interval is allowed.
2. On your forms PayPal & Stripe tab, in Dynamic Values section, enter the dropdown menu form code in the Price Code 1 and Description Code 1 fields and make sure that the Recurring checkbox is checked:
Rate this Article
- Getting Started
- Software Licenses
- Contact Form 7 – Recurring Payments Pro
- Contact Form 7 - PayPal & Stripe Add-on Free
- Contact Form 7 - PayPal & Stripe Add-on Pro
- Easy PayPal Button Pro
- Easy PayPal Events Pro
- Easy PayPal Gift Certificate Pro
- Easy PayPal Shopping Cart Pro
- Known issues
- PayPal Donation Pro
- PayPal Subscriptions & Memberships Pro