'cc_receipt',
'bcc_receipt',
'receipt_text',
+ 'pay_later_receipt',
'payment_processor_id',
];
$input = array_intersect_key($params, array_flip($allowedParams));
'title' => ts('Message (string)'),
'type' => CRM_Utils_Type::T_STRING,
];
+ $params['pay_later_receipt'] = [
+ 'title' => ts('Pay Later Message (string)'),
+ 'type' => CRM_Utils_Type::T_STRING,
+ ];
$params['receipt_update'] = [
'title' => ts('Update the Receipt Date'),
'type' => CRM_Utils_Type::T_BOOLEAN,
'related_contact' => $ids['related_contact'] ?? NULL,
'participant' => !empty($objects['participant']) ? $objects['participant']->id : NULL,
'contributionRecur' => !empty($objects['contributionRecur']) ? $objects['contributionRecur']->id : NULL,
- ], $objects,
+ ], $objects['contribution']->id ?? NULL,
$params['is_post_payment_create'] ?? NULL);
}