From bba2adf5cdd14f076821002079936e3944dda036 Mon Sep 17 00:00:00 2001 From: David Bomba Date: Wed, 7 Dec 2022 20:16:14 +1100 Subject: [PATCH] Add idempotency key for mollie --- app/PaymentDrivers/Mollie/CreditCard.php | 1 + resources/views/portal/ninja2020/layout/clean.blade.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/app/PaymentDrivers/Mollie/CreditCard.php b/app/PaymentDrivers/Mollie/CreditCard.php index bd6b2054fff2..8268f80f638d 100644 --- a/app/PaymentDrivers/Mollie/CreditCard.php +++ b/app/PaymentDrivers/Mollie/CreditCard.php @@ -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, diff --git a/resources/views/portal/ninja2020/layout/clean.blade.php b/resources/views/portal/ninja2020/layout/clean.blade.php index b8c49034cda2..06129549c545 100644 --- a/resources/views/portal/ninja2020/layout/clean.blade.php +++ b/resources/views/portal/ninja2020/layout/clean.blade.php @@ -3,7 +3,7 @@ - @if ($company && $company->matomo_url && $company->matomo_id) + @if (isset($company) && $company->matomo_url && $company->matomo_id)