3 * Test Generated example demonstrating the PledgePayment.update API.
8 function pledge_payment_update_example() {
15 $result = civicrm_api3('PledgePayment', 'update', $params);
17 catch (CiviCRM_API3_Exception
$e) {
19 $errorMessage = $e->getMessage();
20 $errorCode = $e->getErrorCode();
21 $errorData = $e->getExtraParams();
24 'error_message' => $errorMessage,
25 'error_code' => $errorCode,
26 'error_data' => $errorData,
34 * Function returns array of result expected from previous function.
39 function pledge_payment_update_expectedresult() {
50 'contribution_id' => '1',
51 'scheduled_amount' => '20.00',
52 'actual_amount' => '20.00',
54 'scheduled_date' => '20130728085413',
55 'reminder_date' => '',
56 'reminder_count' => 0,
62 return $expectedResult;
66 * This example has been generated from the API test suite.
67 * The test that created it is called "testUpdatePledgePayment"
68 * and can be found at:
69 * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/PledgePaymentTest.php
71 * You can see the outcome of the API tests at
72 * https://test.civicrm.org/job/CiviCRM-master-git/
74 * To Learn about the API read
75 * http://wiki.civicrm.org/confluence/display/CRMDOC/Using+the+API
77 * Browse the api on your own site with the api explorer
78 * http://MYSITE.ORG/path/to/civicrm/api
80 * Read more about testing here
81 * http://wiki.civicrm.org/confluence/display/CRM/Testing
83 * API Standards documentation:
84 * http://wiki.civicrm.org/confluence/display/CRM/API+Architecture+Standards