From 1d4e2bcabe4c9a567082783b47e0fdd9d87655be Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20Beganovi=C4=87?= Date: Sat, 1 May 2021 22:03:07 +0200 Subject: [PATCH] Fix passing correct amount to PaymentFailureMailer --- app/PaymentDrivers/Braintree/CreditCard.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/PaymentDrivers/Braintree/CreditCard.php b/app/PaymentDrivers/Braintree/CreditCard.php index 62cb5b650ef8..0006ea42cbd8 100644 --- a/app/PaymentDrivers/Braintree/CreditCard.php +++ b/app/PaymentDrivers/Braintree/CreditCard.php @@ -160,7 +160,7 @@ class CreditCard */ private function processUnsuccessfulPayment($response) { - PaymentFailureMailer::dispatch($this->braintree->client, $response->transaction->additionalProcessorResponse, $this->braintree->client->company, 10); + PaymentFailureMailer::dispatch($this->braintree->client, $response->transaction->additionalProcessorResponse, $this->braintree->client->company, $this->braintree->payment_hash->data->amount_with_fee); PaymentFailureMailer::dispatch( $this->braintree->client,