6 function pledge_payment_update_example(){
9 'contribution_id' => 1,
12 'actual_amount' => 20,
15 $result = civicrm_api( 'pledge_payment','update',$params );
21 * Function returns array of result expected from previous function
23 function pledge_payment_update_expectedresult(){
25 $expectedResult = array(
34 'contribution_id' => '1',
35 'scheduled_amount' => '20.00',
36 'actual_amount' => '20.00',
38 'scheduled_date' => '20130622000000',
39 'reminder_date' => '',
40 'reminder_count' => 0,
46 return $expectedResult ;
51 * This example has been generated from the API test suite. The test that created it is called
53 * testUpdatePledgePayment and can be found in
54 * http://svn.civicrm.org/civicrm/trunk/tests/phpunit/CiviTest/api/v3/PledgePaymentTest.php
56 * You can see the outcome of the API tests at
57 * http://tests.dev.civicrm.org/trunk/results-api_v3
59 * To Learn about the API read
60 * http://book.civicrm.org/developer/current/techniques/api/
62 * and review the wiki at
63 * http://wiki.civicrm.org/confluence/display/CRMDOC/CiviCRM+Public+APIs
65 * Read more about testing here
66 * http://wiki.civicrm.org/confluence/display/CRM/Testing
68 * API Standards documentation:
69 * http://wiki.civicrm.org/confluence/display/CRM/API+Architecture+Standards