);
$contribution = $this->callAPISuccess('contribution', 'create', $params); //Create partially paid contribution
-
+
//Create partial payment
$params = array(
'contribution_id' => $contribution['id'],
$this->assertEquals($contribution['values'][$contribution['id']]['contribution_status'], 'Completed');
$this->assertEquals($contribution['values'][$contribution['id']]['total_amount'], 200.00);
-
+
$this->callAPISuccess('Contribution', 'Delete', array(
'id' => $contribution['id'],
));
}
-
+
public function testCreatePaymentLineItems() {
// Create priceset & price fields
);
$contribution = $this->callAPISuccess('contribution', 'create', $params); //Create partially paid contribution
-
+
//Create partial payment
$params = array(
'contribution_id' => $contribution['id'],
$this->assertEquals($contribution['values'][$contribution['id']]['contribution_status'], 'Completed');
$this->assertEquals($contribution['values'][$contribution['id']]['total_amount'], 200.00);
-
+
$this->callAPISuccess('Contribution', 'Delete', array(
'id' => $contribution['id'],
));
/**
* Create price set.
*
- *
- * @param $entity
- * @param array $params
*/
public function createPriceSet() {
$contributionPageResult = $this->callAPISuccess('contribution_page', 'create', array(