Sam

Nov
11
comment Add Stripe subscription to customer with PHP
Yes, an unused plugin was loading an older version of the API wrapper before the plugin that I was working on get to load it -facepalm-. Thanks again.
Nov
7
accepted Add Stripe subscription to customer with PHP
Nov
7
comment Add Stripe subscription to customer with PHP
I appreciate your help nevertheless.
Nov
7
comment Add Stripe subscription to customer with PHP
Yup - I appreciate you asking the obvious questions as I've definitely been there before where I just was overlooking something obvious.
Nov
7
comment Add Stripe subscription to customer with PHP
Just array('plan' => $plan)
Nov
7
comment Add Stripe subscription to customer with PHP
Same problem :/
Nov
7
comment Add Stripe subscription to customer with PHP
Updated my question with the printout.
Nov
7
revised Add Stripe subscription to customer with PHP
added 9246 characters in body
Nov
7
comment Add Stripe subscription to customer with PHP
Yeah, for me updating is working fine, it's the second call $customer->subscriptions->create(array('plan'=>$plan_id)) that doesn't work. And updateSubscription() doesn't let you add multiple subscriptions of the same plan, which I need.
Nov
7
comment Add Stripe subscription to customer with PHP
I'm using Stripe PHP wrapper version 1.17.2
Nov
7
comment Add Stripe subscription to customer with PHP
Yeah, it seems like that's the case, but that's what the API doc says to do and I can't find an alternate way to do it. stripe.com/docs/api#create_subscription
Nov
7
asked Add Stripe subscription to customer with PHP
Jul
24
awarded Tumbleweed
Jul
17
asked nginx Infinite Redirect Loop / PHP Download
Jul
2
awarded Curious
May
28
comment PHP mysql query is executing twice
@DaveRandom Wow, you are my hero! I was having a similar problem and it was an empty href in my favicon link. A million thanks!
Apr
30
accepted delete_option() and update_option() returning false
Apr
25
comment delete_option() and update_option() returning false
So I tried running those to no avail. Instead, it seems like it was actually a problem with APC cache. I restarted PHP and that did the trick. What seems to have been happening was that the update and delete were actually working (I went back and found that they returned true once, then would return false), but get_option was getting an old, cached value, making it seem like update and delete weren't working. Do you happen to know why the APC cache wouldn't bust during an update or delete using Jaquith's APC object-cache.php? And thanks for staying on this thread Otto - much appreciated.
Apr
25
comment delete_option() and update_option() returning false
Yeah, in this case it's the mySQL query failing as if I use get_option and var_dump, the option exists with a non-falsy value and I'm not trying to update with the same value. Do you have any idea why the mySQL query would fail consistently for some options but not others?
Apr
25
asked delete_option() and update_option() returning false
1 2 3 4 5