Add idempotency key for mollie

This commit is contained in:
David Bomba 2022-12-07 20:16:14 +11:00
parent 449d88dd21
commit bba2adf5cd
2 changed files with 2 additions and 1 deletions

View File

@ -70,6 +70,7 @@ class CreditCard
'sequenceType' => 'recurring',
'description' => \sprintf('Hash: %s', $this->mollie->payment_hash->hash),
'webhookUrl' => $this->mollie->company_gateway->webhookUrl(),
'idempotencyKey' => uniqid("st",true),
'metadata' => [
'client_id' => $this->mollie->client->hashed_id,
'hash' => $this->mollie->payment_hash->hash,

View File

@ -3,7 +3,7 @@
<head>
<!-- Error: {{ session('error') }} -->
@if ($company && $company->matomo_url && $company->matomo_id)
@if (isset($company) && $company->matomo_url && $company->matomo_id)
<script>
var _paq = window._paq = window._paq || [];
/* tracker methods like "setCustomDimension" should be called before "trackPageView" */