humanmade / wp-stripe

WordPress Plug-in to manage donations made via the Stripe credit card payment solution
http://wordpress.org/extend/plugins/wp-stripe/
49 stars 22 forks source link

Plan-based payments/Recurring payments/Fixed cost payments. #11

Open tchalvak opened 10 years ago

tchalvak commented 10 years ago

This is a big omission in the system that I'm sure a lot of people want: The ability to take fixed payments, like "$50.00 to donate a cow" and also "$20.00 for monthly subscription". Stripe allows this quite well via "plans", which I actually implemented through the wp-stripe plugin recently. I'm not totally happy with how I had to implement it, though.

What I did required passing parameters through the iframe url for the modal window using custom shortcodes to create different plan buttons, like "sign up for gold plan" and the like. Then each of those buttons passes parameters to the link or to the modal window iframe that specify which plan is being requested. I also (a hack) passed the display-only price, though in retrospect the price-of-each-plan should probably be retrieved from the stripe api via a curl call in the script, complete with all the page-load-slowdown that is likely to entail. Overall, it's not an elegant solution at the moment, though it allows use of plans, so it does what I needed it to.

I also found the use of the modal window troublesome overall, since mobile browsers totally stop working when in contact with the modal window.

@noeltock @mrjameshamilton I will create a branch so that I can show my work on this so far, but in the meantime do you guys have thoughts on ways to improve plan-based fixed-price and subscription type payments? I could especially use some brainstorming on how specifying that plan X is being requested should be most gracefully passed to the final payment form, as currently I have to do this as a url parameter to the iframe, specified by shortcodes for wp stripe.

biznickman commented 9 years ago

Any updates on this front? Would love to have subscriptions set up

tchalvak commented 8 years ago

I'm probably going to re-embark on this (trying to get wp-stripe to work with subscription/plan based payment) in the near future.

noeltock commented 8 years ago

Hey Roy, more than welcome!