6 function payment_processor_type_create_example(){
10 'name' => 'API_Test_PP',
11 'title' => 'API Test Payment Processor',
12 'class_name' => 'CRM_Core_Payment_APITest',
13 'billing_mode' => 'form',
17 $result = civicrm_api( 'payment_processor_type','create',$params );
23 * Function returns array of result expected from previous function
25 function payment_processor_type_create_expectedresult(){
27 $expectedResult = array(
35 'name' => 'API_Test_PP',
36 'title' => 'API Test Payment Processor',
40 'user_name_label' => '',
41 'password_label' => '',
42 'signature_label' => '',
43 'subject_label' => '',
44 'class_name' => 'CRM_Core_Payment_APITest',
45 'url_site_default' => '',
46 'url_api_default' => '',
47 'url_recur_default' => '',
48 'url_button_default' => '',
49 'url_site_test_default' => '',
50 'url_api_test_default' => '',
51 'url_recur_test_default' => '',
52 'url_button_test_default' => '',
53 'billing_mode' => '1',
60 return $expectedResult ;
65 * This example has been generated from the API test suite. The test that created it is called
67 * testPaymentProcessorTypeCreate and can be found in
68 * http://svn.civicrm.org/civicrm/trunk/tests/phpunit/CiviTest/api/v3/PaymentProcessorTypeTest.php
70 * You can see the outcome of the API tests at
71 * http://tests.dev.civicrm.org/trunk/results-api_v3
73 * To Learn about the API read
74 * http://book.civicrm.org/developer/current/techniques/api/
76 * and review the wiki at
77 * http://wiki.civicrm.org/confluence/display/CRMDOC/CiviCRM+Public+APIs
79 * Read more about testing here
80 * http://wiki.civicrm.org/confluence/display/CRM/Testing
82 * API Standards documentation:
83 * http://wiki.civicrm.org/confluence/display/CRM/API+Architecture+Standards