mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-08 20:22:42 +01:00
Roll back for idempotency
This commit is contained in:
parent
4ef2d99ca9
commit
f03c6a1d6b
@ -129,9 +129,9 @@ class StorePaymentRequest extends Request
|
||||
$input['date'] = now()->addSeconds($user->company()->utc_offset())->format('Y-m-d');
|
||||
}
|
||||
|
||||
// if (! isset($input['idempotency_key'])) {
|
||||
if (! isset($input['idempotency_key'])) {
|
||||
$input['idempotency_key'] = substr(time()."{$input['date']}{$input['amount']}{$credits_total}{$this->client_id}{$user->company()->company_key}", 0, 64);
|
||||
// }
|
||||
}
|
||||
|
||||
$this->replace($input);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user