3 * Test Generated example demonstrating the Payment.delete API.
8 function payment_delete_example() {
11 'check_permissions' => TRUE,
15 $result = civicrm_api3('Payment', 'delete', $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 payment_delete_expectedresult() {
48 return $expectedResult;
52 * This example has been generated from the API test suite.
53 * The test that created it is called "testDeletePayment"
54 * and can be found at:
55 * https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/PaymentTest.php
57 * You can see the outcome of the API tests at
58 * https://test.civicrm.org/job/CiviCRM-master-git/
60 * To Learn about the API read
61 * http://wiki.civicrm.org/confluence/display/CRMDOC/Using+the+API
63 * Browse the api on your own site with the api explorer
64 * http://MYSITE.ORG/path/to/civicrm/api
66 * Read more about testing here
67 * http://wiki.civicrm.org/confluence/display/CRM/Testing
69 * API Standards documentation:
70 * http://wiki.civicrm.org/confluence/display/CRM/API+Architecture+Standards