Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Stripe: How to set up recurring payments without plan?

First time working with Stripe API. Implementing it on WordPress using PHP and JS. Working on a donation form. Donor should be able to choose a suggested amount (radio buttons-25,50,75,100) or pay as he/she wishes (text field after selecting 'other'). I was able to get this working.

There is a check box to set the amount up as a recurring payment. I created recurring payment plans for the fixed options like 25, 50, 100 etc.

How do I set up a recurring payment if the donor chooses a custom amount? Can't find the relevant API. Please help.

like image 293
thedigitalmonk Avatar asked Nov 07 '14 14:11

thedigitalmonk


People also ask

Can you setup recurring payments on Stripe?

Stripe Billing is the fastest way for your business to bill customers with subscriptions or invoices. Capture more revenue, support new products or business models, and accept recurring payments globally.

How do I set up regular payments on Stripe?

Click on + to add a new subscription plan to your Stripe account. Set up the Stripe recurring payment information (Product/Service name, amount, frequency). Click Save.

How do I set up recurring payments?

Example of how to set up recurring paymentsSelect the customer you want to bill automatically. Select the product or service you want to bill them for on an ongoing basis. Choose a credit card as the payment method and enter the customer's payment details. Choose “make recurring” and enter a name for your template.


1 Answers

This is low tech, but the easiest thing I found was to use as little of the Stripe API as possible. Instead of creating subscription plans and products and things like that, you just:

  • Create a stripe customer.
  • Charge them with a cron job.

If you already know how to charge somebody, you just have to figure out how to create the customer, and then the rest is good to go.

This means you shift some of Stripe's cleverness to our own infrastructure, but I actually found this easier to think about/maintain than thinking through all of Stripe's API docs and features.

like image 152
mlissner Avatar answered Oct 11 '22 12:10

mlissner