Questions around the Aimeos bundle for the Symfony framework
Forum rules: Always add your Symfony, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
#8014 by samking
07 May 2019, 13:42
Hello,
I actually try to set up the Stripe payment.
I added 'composer.phar require league/omnipay omnipay/stripe ' and made a composer update, then I configured the Stripe payment with my API Public key and secret key but when I want to checkout my basket I have this message :

Class "\Aimeos\MShop\Service\Provider\Payment\Stripe" not available

I checked my Class and didn't see anything wrong how could I solve this please?
thank you.
#8016 by aimeos
07 May 2019, 15:48
You need the "aimeoscom/ai-payments" composer package for the integration of the Omnipay library too.
#8036 by samking
09 May 2019, 12:57
Thank you for your help.
But I have already install the ai-payments. My config works well with Paypal, so I installed "omnipay/stripe" and load my 2 API's keys but I syill have this error.
#8040 by aimeos
10 May 2019, 08:25
Which Aimeos version do you use?
Is this file available? ./ext/ai-payments/lib/custom/src/MShop/Service/Provider/Payment/Stripe.php
#8066 by samking
20 May 2019, 17:49
Hi,
thank you for your reply.
I just made test and yes I have the stripe class into the folder.
After a composer update I success to access the stripe payment but there is still something that doesn't work...
I follow what write in the doc and set my settings like that : https://pasteboard.co/IfBwV0O.png
When I want to send Information to stripe I have an error 402 :
Code: Select allshared-c7ae529e76a3c031c886c5f22b48ff24.js:1 POST https://api.stripe.com/v1/tokens 402

I've made test with Postman and my public and private keys are good all of them.
I made test to change the settings of stripe too but if I don't write stripe before my keys I have an error in my console that says that my API Key is empty.
Thank you for your help