merged issue/24

This commit is contained in:
B. Endres 2020-05-24 20:48:22 +02:00
commit 3fbe88a3cf
4 changed files with 29 additions and 0 deletions

View file

@ -604,6 +604,12 @@ function civicrm_api3_twingle_donation_Submit($params) {
// mandate type.
unset($mandate_data['payment_instrument_id']);
// If requested, let CiviSEPA generate the mandate reference
$use_own_mandate_reference = Civi::settings()->get('twingle_dont_use_reference');
if (!empty($use_own_mandate_reference)) {
unset($mandate_data['reference']);
}
// Create the mandate.
$mandate = civicrm_api3('SepaMandate', 'createfull', $mandate_data);