Stripe API not working in 1.5.5

I get an error when testing the Stripe API.

Payment failed. Please try again.
Sending credit card numbers directly to the Stripe API is generally unsafe. We suggest you use test tokens that map to the test card you are using, see https://stripe.com/docs/testing.

Where is the payment script located?

Update 2018-05-18: I won’t edit the Stripe integration manually as it is handled completely by Omnipay. A newer version of the library was released just a few days ago so please be patient for InvoicePlane 1.5.10.


Payment handler is loacted here: https://github.com/InvoicePlane/InvoicePlane/blob/1.5/application/modules/guest/controllers/Payment_handler.php

How can I get this to be production ready using Stripe and be safe… I ran into the same thing once I’ve put the API key in and tried to use a test card.

So, I need to swap out the $credit_card variable with a token generated with the JS from the link below?

https://stripe.com/docs/stripe-js/elements/quickstart#create-token

Do we have an answer for that?

I found a config in stripe to desable tokenisation but it also desable all security features … they highly recommand to use the tokens

there is codes here : https://stripe.com/docs/quickstart
but i am not a dev so …

what can we do to integrate stripe properly in the invoiceplane v 1.5.9?

Nothing new since then.

Hello,

Is there any update to this?
I have just installed InvoicePlane v1.5.11 and setup stripe as the payment gateway, when i go to make a credit card payment, I get the error:

Payment failed. Please try again.
Sending credit card numbers directly to the Stripe API is generally unsafe. We suggest you use test tokens that map to the test card you are using, see https://stripe.com/docs/testing .

I know that tokenization can be disabled in the stripe website settings and when disabling, the card payments work however this seems unsafe from what i have read on the Stripe website and they really recommend using tokenization.

Hi, I also had the need to have Stripe working and built a module that integrates with IP to process stripe payments by using Stripe Checkout (Stripe Checkout). The module is quite basic and I still didn’t have time to do lots of testing, but it does work (I personally use it on a live environment, but please be aware that some more testing should be needed).
I just tried to complete the instructions for using the module (I hope I didn’t forget something) and made the repo public on Github (as well as a release).
If you want to give it a try, here is the link Releases · naui95/hmapi · GitHub

1 Like

Hi naui95,

I integrated your module with my local copy of IP and checked how the webhook behaves locally with stripe cli. It works well. I had some issues with an uri that is wrong in the documentation and the index.php redirection though.

Thanks for sharing it,
Regards.