],
"return" => {
"desc" =>
- q{1 on success, event on failure. Event possibilities include:
+ q{Array of payment IDs on success, event on failure. Event possibilities include:
BAD_PARAMS
Bad parameters were given to this API method itself.
See note field.
### RE-OPEN TRANSACTION HERE ###
$e->xact_begin;
+ my @payment_ids;
# create payment records
my $create_money_method = "create_money_" . $type;
$e, "$create_money_method failed", $payment, $cc_payload
);
}
+
+ push(@payment_ids, $payment->id);
}
my $evt = _update_patron_credit($e, $patron, $credit);
}
$e->commit;
- return 1;
+ return \@payment_ids;
}
sub _recording_failure {