Fixes for mollie - disable idempotency

This commit is contained in:
David Bomba 2023-02-21 18:04:59 +11:00
parent a38730ed3f
commit 44ffbeb4a9
2 changed files with 3 additions and 2 deletions

View File

@ -72,7 +72,7 @@ class CreditCard
'sequenceType' => 'recurring',
'description' => $description,
'webhookUrl' => $this->mollie->company_gateway->webhookUrl(),
'idempotencyKey' => uniqid("st", true),
// 'idempotencyKey' => uniqid("st", true),
'metadata' => [
'client_id' => $this->mollie->client->hashed_id,
'hash' => $this->mollie->payment_hash->hash,
@ -111,7 +111,7 @@ class CreditCard
'value' => $amount,
],
'description' => $description,
'idempotencyKey' => uniqid("st", true),
// 'idempotencyKey' => uniqid("st", true),
'redirectUrl' => route('mollie.3ds_redirect', [
'company_key' => $this->mollie->client->company->company_key,
'company_gateway_id' => $this->mollie->company_gateway->hashed_id,

View File

@ -218,6 +218,7 @@ class MolliePaymentDriver extends BaseDriver
'customerId' => $cgt->gateway_customer_reference,
'sequenceType' => 'recurring',
'description' => $description,
'idempotencyKey' => uniqid("st", true),
'webhookUrl' => $this->company_gateway->webhookUrl(),
]);