Skip to content
Snippets Groups Projects
Commit f078ea51 authored by Dave Greenberg's avatar Dave Greenberg
Browse files

CRM-12119 replaced demo_processor with new dummy_processor file which creates...

CRM-12119 replaced demo_processor with new dummy_processor file which creates dummy (test) type payment processors and sets sample event and contribution pages to use those. Also links dummy processors to appropriate financial account.
parent a2dbe2ac
No related branches found
No related tags found
No related merge requests found
......@@ -49,7 +49,7 @@ mysqldump -cent --skip-triggers -u $DBUSER $PASSWDSECTION $DBARGS $DBNAME > civi
cat civicrm_sample_custom_data.mysql >> civicrm_generated.mysql
#cat civicrm_devel_config.mysql >> civicrm_generated.mysql
cat ../CRM/Case/xml/configuration.sample/SampleConfig.mysql >> civicrm_generated.mysql
cat civicrm_demo_processor.mysql >> civicrm_generated.mysql
cat civicrm_dummy_processor.mysql >> civicrm_generated.mysql
mysqladmin -f -u$DBUSER $PASSWDSECTION $DBARGS drop $DBNAME
mysqladmin -u$DBUSER $PASSWDSECTION $DBARGS create $DBNAME
mysql -u$DBUSER $PASSWDSECTION $DBARGS $DBNAME < civicrm.mysql
......
INSERT INTO `civicrm_payment_processor` (`domain_id`, `name`, `description`, `payment_processor_type_id`, `is_active`, `is_default`, `is_test`, `user_name`, `password`, `signature`, `url_site`, `url_api`, `url_recur`, `url_button`, `subject`, `class_name`, `billing_mode`, `is_recur`, `payment_type`)
VALUES (1, 'Test Processor', '', 10, 1, 1, 0, 'dummy', NULL, NULL, 'http://dummy.com', NULL, 'http://dummyrecur.com', NULL, NULL, 'Payment_Dummy', 1, 1, 1);
INSERT INTO `civicrm_payment_processor` (`domain_id`, `name`, `description`, `payment_processor_type_id`, `is_active`, `is_default`, `is_test`, `user_name`, `password`, `signature`, `url_site`, `url_api`, `url_recur`, `url_button`, `subject`, `class_name`, `billing_mode`, `is_recur`, `payment_type`)
VALUES (1, 'Test Processor', '', 10, 1, 1, 1, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'Payment_Dummy', 1, 1, 1);
SELECT @dp := max(id) from civicrm_payment_processor where name = 'Test Processor' AND is_test = 0;
SELECT @dpTest := max(id) from civicrm_payment_processor where name = 'Test Processor' AND is_test = 1;
INSERT INTO `civicrm_entity_financial_account` (`entity_table`, `entity_id`, `account_relationship`, `financial_account_id`)
VALUES ('civicrm_payment_processor', @dp, 6, 12);
INSERT INTO `civicrm_entity_financial_account` (`entity_table`, `entity_id`, `account_relationship`, `financial_account_id`)
VALUES ('civicrm_payment_processor', @dpTest, 6, 12);
UPDATE `civicrm_contribution_page`
SET payment_processor = @dp;
UPDATE `civicrm_event`
SET payment_processor = @dp;
This diff is collapsed.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment