diff --git a/app/PaymentDrivers/PayFastPaymentDriver.php b/app/PaymentDrivers/PayFastPaymentDriver.php index cfa77b4f01..07267339b7 100644 --- a/app/PaymentDrivers/PayFastPaymentDriver.php +++ b/app/PaymentDrivers/PayFastPaymentDriver.php @@ -68,18 +68,18 @@ class PayFastPaymentDriver extends BaseDriver public function init() { - try { - $this->payfast = new \Payfast\PayFastPayment( - [ - 'merchantId' => $this->company_gateway->getConfigField('merchantId'), - 'merchantKey' => $this->company_gateway->getConfigField('merchantKey'), - 'passPhrase' => $this->company_gateway->getConfigField('passphrase'), - 'testMode' => $this->company_gateway->getConfigField('testMode'), - ] - ); - } catch (\Exception $e) { - nlog('##PAYFAST## There was an exception: '.$e->getMessage()); - } + // try { + // $this->payfast = new \Payfast\PayFastPayment( + // [ + // 'merchantId' => $this->company_gateway->getConfigField('merchantId'), + // 'merchantKey' => $this->company_gateway->getConfigField('merchantKey'), + // 'passPhrase' => $this->company_gateway->getConfigField('passphrase'), + // 'testMode' => $this->company_gateway->getConfigField('testMode'), + // ] + // ); + // } catch (\Exception $e) { + // nlog('##PAYFAST## There was an exception: '.$e->getMessage()); + // } return $this; } @@ -211,7 +211,6 @@ class PayFastPaymentDriver extends BaseDriver return response()->json([], 200); - break; default: @@ -223,7 +222,6 @@ class PayFastPaymentDriver extends BaseDriver return response()->json([], 200); - break; } } diff --git a/composer.json b/composer.json index 85d724d6ba..cd273d7f6e 100644 --- a/composer.json +++ b/composer.json @@ -77,7 +77,6 @@ "nordigen/nordigen-php": "^1.1", "nwidart/laravel-modules": "^10.0", "omnipay/paypal": "^3.0", - "payfast/payfast-php-sdk": "^1.1", "phpoffice/phpspreadsheet": "^1.29", "pragmarx/google2fa": "^8.0", "predis/predis": "^2", diff --git a/lang/en/texts.php b/lang/en/texts.php index 970d5f6c83..cafb3a74a8 100644 --- a/lang/en/texts.php +++ b/lang/en/texts.php @@ -4029,7 +4029,7 @@ $lang = array( 'user_detached' => 'User detached from company', 'create_webhook_failure' => 'Failed to create Webhook', 'payment_message_extended' => 'Thank you for your payment of :amount for :invoice', - 'online_payments_minimum_note' => 'Note: Online payments are supported only if amount is bigger than $1 or currency equivalent.', + 'online_payments_minimum_note' => 'Note: Online payments are supported only if amount is larger than $1 or currency equivalent.', 'payment_token_not_found' => 'Payment token not found, please try again. If an issue still persist, try with another payment method', 'vendor_address1' => 'Vendor Street', 'vendor_address2' => 'Vendor Apt/Suite',