Simple Stripe Payment Gateway Integration In Codeigniter
https://codeigniter-stripe.herokuapp.com/
- Codeigniter 3.1.10
- Bootstrap 4
- Create Stripe Account and get publishable and secret key.
- Paste the keys in config.php
/*Stripe Config*/
$config['stripe_key'] = 'YOUR_PUBLISHABLE_KEY';
$config['stripe_secret'] = 'YOUR_SECRET_KEY';
- Update the application folder directory in .htaccess
RewriteEngine On
RewriteBase /APPLICATION_FOLDER_NAME
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /APPLICATION_FOLDER_NAME/index.php/$1 [L]
<IfModule mod_env.c>
SetEnv CI_ENV development
</IfModule>
- Create database name as
ci_stripe
and import database/ci_stripe.sql in it.