I have created a form with Stripe payment. We sell a product where the person can pay annually or monthly. I cannot see if you can get to the checkout and then the person can select pay full amount now or select pay monthly and then this will create a subscription in Stripe. Does anyone know if this can be done? If so, how this is done and what the code would be?
Hi Jason. Offer the choice of annual payment or monthly payment in the form (use a radio button field for this.) Then, create two Stripe feeds: one for monthly, and one for annual. Configure each feed accordingly (1x per month or 1x per year.)
Then, on the bottom of the feeds, use the conditional logic to determine when each feed is processed, based on the radio button selection in the form. Only one feed will be processed per submission and it will be whichever one matches the condition with the radio button field.
We describe it in more detail in this document:
If you have any questions, please let us know.
Hi Chris,
I am not sure I am doing this correctly.
I cannot see to work out how to distinguish between a monthly and annual payment. We can only select “Total” when creating a Stripe feed.
If we charge this once a year then that is fine if the charge is £100. However, when I would select the Stripe feed for charging each month surely it will charge £100 every month.
I then created a monthly amount and tried to charge against this but this does not work as I cannot select this from the form.
Can you offer any advice as the article does not help as this is purely for different payment options.
If I make the charge as £100 and then have this paid monthly will this automatically divide the payments by 12?
Hi Chris,
I am not sure I am doing this correctly.
I cannot see to work out how to distinguish between a monthly and annual payment. We can only select “Total” when creating a Stripe feed.
If we charge this once a year then that is fine if the charge is £100. However, when I would select the Stripe feed for charging each month surely it will charge £100 every month.
I then created a monthly amount and tried to charge against this but this does not work as I cannot select this from the form.
Can you offer any advice as the article does not help as this is purely for different payment options.
If I make the charge as £100 and then have this paid monthly will this automatically divide the payments by 12?
Hi Chris,
Are you able to respond to this?
Jason
Hi Jason. The approach would be to send a different form field (the amount to be charged, either monthly or annually) instead of the form total. That way, you can use conditional logic on the feeds to send the correct amount to Stripe with the correct frequency. I recommend opening a support ticket if you need more details on the setup:
https://www.gravityforms.com/open-support-ticket/technical/
Thank you.
Jason,
I might be able to help with this:
You’ll set your form up to have 2 different options as radio buttons or dropdowns:
Pay it now
Pay in 6 installments
Then you’ll set up 2 different hidden product fields that are fixed prices
One for the full amount
One for the monthly amount
Those are conditional based on the selection made in the dropdown/radio
Lastly, you can have a total if you want also as well as some other conditional stuff. For example
Today’s Payment Amount (conditional HTML) (based on pay it now selection)
6-Month Automatic Charge Amount (based on monthly payment option)
pay it now total (based on pay it now)
6 month(based on monthly payment)
That’s pretty much it.
If you need to end the monthly payments automatically after a certain number of charges, check out https://www.subscriptiondates.com/. This will make it possible for you to end your subscriptions automagically.
You can also have a look at https://www.gravitystripe.com which will record all your users payments/purchases in a dashboard area of sorts for subscriptions and 1-time payment products)
Good luck.
David
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.