I updated to uc_stripe 7.x-2.1
installed the 2.2 library and drush cc all
But this is the status:
Stripe PHP Library Unsupported version installed
Stripe PHP API version 2.2.0 is installed but one of the following versions is required:
I removed the stripe api and I ran drush ldl stripe
clear all cache, but this is the status:
Stripe PHP Library Unsupported version installed
Stripe PHP API version 3.13.0 is installed but one of the following versions is required:
I have the libraries api 2.3
It Just doesn't work for me. Please advise
Comments
Comment #2
garyg commentedFIXED
I reinstalled uc_stripe from manual downloads and got it working.
I think there are issues with drush 8.1.3 and drupal 7.50
Comment #3
rfayI haven't heard of this before - Could you please look around to make sure there aren't two different Stripe PHP libraries installed?
I assume when it says "Stripe PHP API version 2.2.0 is installed but one of the following versions is required" it is actually quoting the versions allowed? (That wasn't in your description, if it's empty, it might mean something.)
Comment #4
rfayThanks for the report
Comment #5
jefferius commentedI am having the exact same problem...
Installed the library and the module... when I am in update.php I get 'Requirements problem' and various module errors...
And...
Stripe PHP Library Unsupported version installed
Stripe PHP API version 3.13.0 is installed but one of the following versions is required:
I have tried manually installing the module. Same errors.
It is almost as though it has no info on what versions are required? Since is says one of the following versions is required: and then that is blank.
Ive had to install version 7.2.0 with library 2.2.0 to get it to work.
Comment #6
gnomeofthedamned commentedI'm having the exact same problem as @jefferius. I am on the recommended release version 7.x-2.1 of uc_stripe, and I installed the library version 3.13.0 as instructed in the readme. When I go to /update.php I see the above errors exactly.
This includes the line where it says "Stripe PHP API version 3.13.0 is installed but one of the following versions is required: " and it lists no versions there.
I found this problem because I was getting [this error with uc_recurring](https://www.drupal.org/node/1952834). As instructed in the thread, I updated uc_recurring to the latest dev version 7.x-2.x-dev. I was able to confirm that this fixed my uc_recurring error. I had previously been able to reproduce the error by going to a product edit page and then clicking the "subscriptions" tab.
I went ahead with the update, and it seemed to complete successfully.
Perhaps this has something to do with the uc_stripe module looking for the version of the PHP library in the wrong place? I noticed that in the uc_stripe readme it says:
"Download and install the Stripe PHP Library version 2.2.0 or 3.13.0 from https://github.com/stripe/stripe-php/releases. Put it in sites/all/libraries/stripe such that the path to VERSION is sites/all/libraries/stripe/lib/VERSION". However, I noticed that VERSION is actually in the root directory of the stripe-php library folder, not in its lib folder.
This worried me, so I did some research and found that an earlier version of the uc_stripe readme file said that Stripe.php should be found in sites/all/libraries/stripe/lib/Stripe.php. I saw that this is indeed where Stripe.php is located so I disregarded the readme and continued. The uc_stripe install worked just fine, and I was able to try out my test api key, so that was when I went on to fix the uc_recurring issue described above, which is why I needed to run update.php, and that is how I reproduced @jefferius's problem.
Comment #7
rfayYou're definitely right that it should be sites/all/libraries/stripe/VERSION - Thanks for reading that closely.
I'd appreciate it if you could test #2760139-06: Unsupported 3.x Stripe Library versions cause an error rather than reporting the problem on the Status page (it applies against the dev tarball or git checkout) because it may sort everything out much more easily.
Comment #9
rfayI think this is fixed in #2760139: Unsupported 3.x Stripe Library versions cause an error rather than reporting the problem on the Status page so please test the dev version updated today. Thanks for the report.
I did commit a change to README to fix that problem.
Testing results will be appreciated. I'll roll a new version if things are working out for people.