Skip to content
Snippets Groups Projects
Commit 12684a48 authored by drastik's avatar drastik
Browse files

readme

parent d3f3b7c7
Branches
Tags
No related merge requests found
......@@ -13,10 +13,11 @@ Joomla: TBD
WordPress: TBD
IMPORTANT:
In CiviCRM 4.2, just make sure you have the correct "Job Scheduler" cron entry set up.
In all versions except extension-4.2 (CiviCRM 4.2+):
-You will need to create a cron job in order for recurring contributions to be properly ended.
The cron files are the files in the 'extern' folder. There is one file each for live & test mode and files are named accordingly.
In CiviCRM 4.2, just make sure you have the correct "Job Scheduler" cron entry.
For Pre-Extension (source) method:
-You will need to run the .sql file to make sure the database tables get created & Stripe is added as a payment processor option.
......@@ -33,7 +34,6 @@ extension-4.2 instructions:
Install extension
Place civicrm_templates folder anywhere and inform CiviCRM of your "Custom Templates" location in this admin page: site.com/civicrm/admin/setting/path
(custom template soon to be removed as a requirement)
Make sure you have a cron entry for CiviCRM's Job Scheduler!
......
------------
Please Read:
There are 3 versions included by directory. Installation instructions for each further below:
extension-4.1: Extension for CiviCRM 4.1 and earlier.
extension-4.2: Extension for CiviCRM 4.2.
source: Pre-extension method, folder structure is in tact, place files accordingly.
You also need a corresponding module for your CMS. Here is where the modules can be found:
Drupal: git clone --recursive --branch master http://git.drupal.org/sandbox/drastik/1719796.git civicrm_stripe
Joomla: TBD
WordPress: TBD
IMPORTANT:
-You will need to create a cron job in order for recurring contributions to be properly ended.
The cron files are the files in the 'extern' folder. There is one file each for live & test mode and files are named accordingly.
------------
Installation Instructions:
------------
For CiviCRM 4.1
extension-4.1 instructions:
Install extension
Place civicrm_templates folder anywhere and inform CiviCRM of your "Custom Templates" location in this admin page: site.com/civicrm/admin/setting/path
Copy files in extern to your CiviCRM extern folder "civicrm/extern"
Make cron entry to hit the file(s) (daily preferred).
Copy Stripe's PHP library folder 'stripe-php' to civicrm/packages/stripe-php
You can get Stripe's PHP library here: https://github.com/stripe/stripe-php
------------
\ No newline at end of file
......@@ -106,6 +106,7 @@ class com_drastikbydesign_payment_stripe extends CRM_Core_Payment {
/*
* CiviCRM extension install()
* Not functioning in <=CiviCRM 4.1
*/
public function install() {
//Create required tables for Stripe
......@@ -137,6 +138,7 @@ class com_drastikbydesign_payment_stripe extends CRM_Core_Payment {
/*
* CiviCRM extension uninstall()
* Not functioning in <=CiviCRM 4.1
*/
public function uninstall() {
//Remove Stripe tables on uninstall
......
------------
Please Read:
There are 3 versions included by directory. Installation instructions for each further below:
extension-4.1: Extension for CiviCRM 4.1 and earlier.
extension-4.2: Extension for CiviCRM 4.2.
source: Pre-extension method, folder structure is in tact, place files accordingly.
You also need a corresponding module for your CMS. Here is where the modules can be found:
Drupal: git clone --recursive --branch master http://git.drupal.org/sandbox/drastik/1719796.git civicrm_stripe
Joomla: TBD
WordPress: TBD
IMPORTANT:
In CiviCRM 4.2, just make sure you have the correct "Job Scheduler" cron entry set up.
------------
Installation Instructions:
------------
For CiviCRM 4.2
extension-4.2 instructions:
Install extension
Place civicrm_templates folder anywhere and inform CiviCRM of your "Custom Templates" location in this admin page: site.com/civicrm/admin/setting/path
(custom template soon to be removed as a requirement)
Make sure you have a cron entry for CiviCRM's Job Scheduler!
Copy Stripe's PHP library folder 'stripe-php' to civicrm/packages/stripe-php
You can get Stripe's PHP library here: https://github.com/stripe/stripe-php
------------
\ No newline at end of file
......@@ -88,7 +88,7 @@ class com_drastikbydesign_payment_stripe extends CRM_Core_Payment {
`id` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
UNIQUE KEY `email` (`email`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
");
");
CRM_Core_DAO::executeQuery("
CREATE TABLE IF NOT EXISTS `civicrm_stripe_plans` (
......@@ -113,13 +113,21 @@ class com_drastikbydesign_payment_stripe extends CRM_Core_Payment {
) VALUES (
NULL, %1, 'Daily', NULL, 'Check ending Stripe Recurring Payments',
'End any Stripe recurring payments that have fufilled last installment',
'civicrm_api3', 'job', 'run_payment_cron', 'processor_name=Stripe', 0
'civicrm_api3', 'job', 'run_payment_cron', 'processor_name=Stripe', 1
)
", array(
1 => array(CIVICRM_DOMAIN_ID, 'Integer')
)
);
CRM_Core_Session::setStatus("Stripe Payment Processor Message: <br />Don't forget to create a cron entry for CiviCRM's Job Scheduler so recurring contributions are ended!");
}
/*
* CiviCRM extension enable()
*/
public function enable() {
CRM_Core_Session::setStatus("Stripe Payment Processor Message: <br />Don't forget to create a cron entry for CiviCRM's Job Scheduler so recurring contributions are ended!");
}
/*
......
------------
Please Read:
There are 3 versions included by directory. Installation instructions for each further below:
extension-4.1: Extension for CiviCRM 4.1 and earlier.
extension-4.2: Extension for CiviCRM 4.2.
source: Pre-extension method, folder structure is in tact, place files accordingly.
You also need a corresponding module for your CMS. Here is where the modules can be found:
Drupal: git clone --recursive --branch master http://git.drupal.org/sandbox/drastik/1719796.git civicrm_stripe
Joomla: TBD
WordPress: TBD
IMPORTANT:
-You will need to create a cron job in order for recurring contributions to be properly ended.
The cron files are the files in the 'extern' folder. There is one file each for live & test mode and files are named accordingly.
-You will need to run the .sql file to make sure the database tables get created & Stripe is added as a payment processor option.
------------
Installation Instructions:
------------
Pre-extension (source) instructions:
Folder structure is left in tact.
Place Stripe.php in civicrm/CRM/Core/Payment/Stripe.php
Place civicrm_templates folder anywhere and inform CiviCRM of your "Custom Templates" location in this admin page: site.com/civicrm/admin/setting/path
Copy files in extern to your CiviCRM extern folder "civicrm/extern"
Make cron entry to hit the file(s) (daily preferred).
Copy Stripe's PHP library folder 'stripe-php' to civicrm/packages/stripe-php
You can get Stripe's PHP library here: https://github.com/stripe/stripe-php
Run the included SQL file "civicrm_stripe.sql" to handle the DB-related needs. It will:
Insert Stripe into civicrm_payment_processor_type (makes it available as an option within CiviCRM's payment processor settings)
It will create the required tables:
civicrm_stripe_customers
civicrm_stripe_plans
civicrm_stripe_subscriptions
------------
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment