New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Install fusio/adapter-stripe error. It looks like version not compatible. How can I solve it? #504
Comments
Hi @cococonuts could you explicit try to use the version v5.2.0 i.e. with |
hi @chriskapp I tried this tricky method, install adapter-strip with gnore-platform-reqs option. It works and I can config stripe with API key in fusio admin. However, when I purchase subscription in developer app, it goes to error 500. What else should I install for stripe payment? |
Do you have dev document for how to debug the router/issue in fusio? |
Hi @cococonuts, could you check the PHP error logs, there should be an error regarding this issue, I would also assume that this is probably a problem regarding PHP 8.2 |
I just start to use PHP, so not very familiar with PHP debugging. I have no idea where is PHP log. Is the error.log in the /var/log/nginx/? I also tried to modify /etc/php/8.2/fpm/php.ini and /etc/php/8.2/cli/php.ini to make the error_log=/var/log/nginx/error.log |
@chriskapp , I got the error log. Do you have any thoughts? Thank you :) psx.ERROR: Call to undefined method Fusio\Engine\Payment\CheckoutContext::getDomain() {"file":"/var/www/fusio/html/vendor/fusio/adapter-stripe/src/Provider/Stripe.php","line":84,"trace":" |
@cococonuts ok this looks indeed like you have an older version installed, could you run in your folder the |
@chriskapp But I have new questions: I successfully purchase a subscription and one-time plan. I can't find transaction recording in fusio portal. |
@cococonuts so great that this works, in a later version we have removed our internal billing system and the Contract/Invoice panel, since all this can be handled by the payment provider i.e. stripe which has much more options to customize your billing setup. You need to create a stripe connection and then register a payment webhook at the stripe portal which calls your Fusio instance at |
@chriskapp Got your point. I guess perhaps I didn't set up endpoint on strip webhook correctly So which endpoint in stripe webhook should be set: I didn't find webhook related document. Do you have a updated developer document? |
yes, so you would need to use the url which points directly to your Fusio instance, in your case: |
@chriskapp externalId is empty. Where can I set the externalId for user? How to set up the billing portal? So that use can view the billing portal. |
@chriskapp I solved the billing portal problem. |
@chriskapp |
Hey @cococonuts yes so regarding the external id, this value is also set via the stripe webhook, then a user gets the fitting external id. If the user has an external id he is able to visit the visit billing portal where he can also cancel a subscription. Regarding the points, yes so every time a user buys points those points are added to the existing points. |
@chriskapp Here is my stripe billing portal, there is no "Cancel subscription" entry point. |
sudo composer require fusio/adapter-stripe:*
Do not run Composer as root/super user! See https://getcomposer.org/root for details
Continue as root/super user [yes]? yes
./composer.json has been updated
Running composer update fusio/adapter-stripe
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.
Problem 1
- laminas/laminas-code 4.7.0 requires php >=7.4, <8.2 -> your php version (8.2.5) does not satisfy that requirement.
- doctrine/migrations 2.3.5 requires friendsofphp/proxy-manager-lts ^1.0 -> satisfiable by friendsofphp/proxy-manager-lts[v1.0.13].
- fusio/impl v6.3.8 requires doctrine/migrations ^2.3 -> satisfiable by doctrine/migrations[2.3.5].
- friendsofphp/proxy-manager-lts v1.0.13 requires laminas/laminas-code ~3.4.1|^4.0 -> satisfiable by laminas/laminas-code[4.7.0].
- fusio/impl is locked to version v6.3.8 and an update of this package was not requested.
Installation failed, reverting ./composer.json and ./composer.lock to their original content.
The text was updated successfully, but these errors were encountered: