Stripe Payment API integration in CodeIgniter

Stripe Payment API

Hi Guys!! In this post we are going to provide you Stripe Payment API script in CodeIgniter. This will help you guys to integrate Stripe Payment in 10 minutes. So, let’s start it.


Step1: Signup at and get API keys from here See below image for ease:


Step2: Download code from here, extract it and place it in your htdocs folder. Now edit application/controllers/Stripe/Payment.php and replace your Test Secret Key at line no. 18.

Edit application/views/stripe/index.php  and replace Test Publishable key at line no. 57.

Steap3: Run this sql code in your database:

Step4: Change database credentials in application/config/database.php and also change the base_url in application/config/config.php.

Step5: Run this URL in browser http://localhost/stripe-payment/stripe/payment(Your URL may differ). That’s all.

Enjoy Coding!!

Live Demo

Download Code

If you guys find any difficulty to integrate this script you can contact us here or can reply below. Thanks.

Share This:

Leave a Reply