6 function payment_processor_create_example(){
9 'name' => 'API Test PP',
10 'payment_processor_type_id' => 1,
11 'class_name' => 'CRM_Core_Payment_APITest',
16 $result = civicrm_api( 'payment_processor','create',$params );
22 * Function returns array of result expected from previous function
24 function payment_processor_create_expectedresult(){
26 $expectedResult = array(
35 'name' => 'API Test PP',
37 'payment_processor_type_id' => '1',
49 'class_name' => 'CRM_Core_Payment_APITest',
50 'billing_mode' => '1',
52 'payment_type' => '1',
57 return $expectedResult ;
62 * This example has been generated from the API test suite. The test that created it is called
64 * testPaymentProcessorCreate and can be found in
65 * http://svn.civicrm.org/civicrm/trunk/tests/phpunit/CiviTest/api/v3/PaymentProcessorTest.php
67 * You can see the outcome of the API tests at
68 * http://tests.dev.civicrm.org/trunk/results-api_v3
70 * To Learn about the API read
71 * http://book.civicrm.org/developer/current/techniques/api/
73 * and review the wiki at
74 * http://wiki.civicrm.org/confluence/display/CRMDOC/CiviCRM+Public+APIs
76 * Read more about testing here
77 * http://wiki.civicrm.org/confluence/display/CRM/Testing
79 * API Standards documentation:
80 * http://wiki.civicrm.org/confluence/display/CRM/API+Architecture+Standards