You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I working on a symfony 4 project and when i wanted to integrate the bundle. when i try to create a customer i have this
Uncaught PHP Exception Symfony\Component\DependencyInjection\Exception\RuntimeException: "Cannot resolve argument $stripeClient of "App\Controller\User\RegisterPaymentMethodController()": Cannot autowire service "Flosch\Bundle\StripeBundle\Stripe\StripeClient": argument "$stripeApiKey" of method "__construct()" has no type-hint, you should configure its value explicitly." at /Users/simonackermann/Sites/courses/symfony/champeryNb/var/cache/dev/ContainerOspQEUr/getStripeClientService.php line 9
I have not used this bundle on a Symfony 4 project myself, so I cannot tell you why exactly the configuration inside your own flosch_stripe.yaml file does not work, but I guess this change should solve your problem:
@flo-sch thank you very much I don't have this error anymore.
However when i use the createCustomer method i get this error.
[critical] Uncaught PHP Exception Stripe\Error\ApiConnection: "Unexpected error communicating with Stripe. If this problem persists, let us know at support@stripe.com.
(Network error [errno 35]: Server aborted the SSL handshake)" at /Users/simonackermann/Sites/courses/symfony/champeryNb/vendor/stripe/stripe-php/lib/HttpClient/CurlClient.php line 250
The Exception is in the stripe-php lib but maybe you have a clue on what the probleme is.
Hey,
I working on a symfony 4 project and when i wanted to integrate the bundle. when i try to create a customer i have this
I realy don't know what to do.
here is all my code;
https://github.com/simonackermann/private-rent/tree/feature/creditCardPayment
Thanks in advanc for the help
The text was updated successfully, but these errors were encountered: