mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-06-04 17:14:36 -04:00
php-cs-fixer
This commit is contained in:
parent
2618a1d3b8
commit
0aff363f5d
@ -29,6 +29,5 @@ class TempRouteController extends Controller
|
||||
$data['html'] = Cache::get($hash);
|
||||
|
||||
return view('pdf.html', $data);
|
||||
|
||||
}
|
||||
}
|
||||
|
@ -11,7 +11,6 @@
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use App\Models\TaxRate;
|
||||
use Illuminate\Database\Eloquent\Relations\Pivot;
|
||||
use Illuminate\Database\Eloquent\SoftDeletes;
|
||||
|
||||
|
@ -166,7 +166,8 @@ class AuthorizeCreditCard
|
||||
|
||||
$payment_record = [];
|
||||
$payment_record['amount'] = $amount;
|
||||
$payment_record['payment_type'] = PaymentType::CREDIT_CARD_OTHER;;
|
||||
$payment_record['payment_type'] = PaymentType::CREDIT_CARD_OTHER;
|
||||
;
|
||||
$payment_record['transaction_reference'] = $response->getTransactionResponse()->getTransId();
|
||||
|
||||
$payment = $this->authorize->createPayment($payment_record);
|
||||
|
@ -13,11 +13,8 @@
|
||||
namespace App\PaymentDrivers\Authorize;
|
||||
|
||||
use App\Exceptions\GenericPaymentDriverFailure;
|
||||
use App\Models\ClientGatewayToken;
|
||||
use App\Models\GatewayType;
|
||||
use App\PaymentDrivers\AuthorizePaymentDriver;
|
||||
use App\PaymentDrivers\Authorize\AuthorizeCreateCustomer;
|
||||
use App\PaymentDrivers\Authorize\AuthorizeCreditCard;
|
||||
use net\authorize\api\contract\v1\CreateCustomerPaymentProfileRequest;
|
||||
use net\authorize\api\contract\v1\CustomerAddressType;
|
||||
use net\authorize\api\contract\v1\CustomerPaymentProfileType;
|
||||
@ -47,18 +44,15 @@ class AuthorizePaymentMethod
|
||||
public function authorizeView()
|
||||
{
|
||||
if ($this->authorize->payment_method instanceof AuthorizeCreditCard) {
|
||||
|
||||
$this->payment_method_id = GatewayType::CREDIT_CARD;
|
||||
|
||||
return $this->authorizeCreditCard();
|
||||
|
||||
}
|
||||
|
||||
|
||||
// case GatewayType::BANK_TRANSFER:
|
||||
// return $this->authorizeBankTransfer();
|
||||
// break;
|
||||
|
||||
}
|
||||
|
||||
public function authorizeResponseView($request)
|
||||
@ -116,7 +110,6 @@ class AuthorizePaymentMethod
|
||||
|
||||
public function createClientGatewayToken($payment_profile, $gateway_customer_reference)
|
||||
{
|
||||
|
||||
$data = [];
|
||||
$additonal = [];
|
||||
|
||||
|
@ -31,8 +31,8 @@ use App\Utils\Traits\MakesHash;
|
||||
use App\Utils\Traits\SystemLogTrait;
|
||||
use Checkout\Library\Exceptions\CheckoutHttpException;
|
||||
use Exception;
|
||||
use Illuminate\Support\Carbon;
|
||||
use Illuminate\Http\Request;
|
||||
use Illuminate\Support\Carbon;
|
||||
|
||||
/**
|
||||
* Class BaseDriver.
|
||||
@ -87,7 +87,9 @@ class BaseDriver extends AbstractPaymentDriver
|
||||
* @param array $data
|
||||
* @return mixed Return a view for collecting payment method information
|
||||
*/
|
||||
public function authorizeView(array $data) {}
|
||||
public function authorizeView(array $data)
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
* The payment authorization response
|
||||
@ -95,7 +97,9 @@ class BaseDriver extends AbstractPaymentDriver
|
||||
* @param Request $request
|
||||
* @return mixed Return a response for collecting payment method information
|
||||
*/
|
||||
public function authorizeResponse(Request $request) {}
|
||||
public function authorizeResponse(Request $request)
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
* Process a payment
|
||||
@ -103,7 +107,9 @@ class BaseDriver extends AbstractPaymentDriver
|
||||
* @param array $data
|
||||
* @return mixed Return a view for the payment
|
||||
*/
|
||||
public function processPaymentView(array $data) {}
|
||||
public function processPaymentView(array $data)
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
* Process payment response
|
||||
@ -111,7 +117,9 @@ class BaseDriver extends AbstractPaymentDriver
|
||||
* @param Request $request
|
||||
* @return mixed Return a response for the payment
|
||||
*/
|
||||
public function processPaymentResponse(Request $request) {}
|
||||
public function processPaymentResponse(Request $request)
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
* Executes a refund attempt for a given amount with a transaction_reference.
|
||||
@ -121,7 +129,9 @@ class BaseDriver extends AbstractPaymentDriver
|
||||
* @param bool $return_client_response Whether the method needs to return a response (otherwise we assume an unattended payment)
|
||||
* @return mixed
|
||||
*/
|
||||
public function refund(Payment $payment, $amount, $return_client_response = false) {}
|
||||
public function refund(Payment $payment, $amount, $return_client_response = false)
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
* Process an unattended payment.
|
||||
@ -130,14 +140,18 @@ class BaseDriver extends AbstractPaymentDriver
|
||||
* @param PaymentHash $payment_hash The Payment hash containing the payment meta data
|
||||
* @return void The payment response
|
||||
*/
|
||||
public function tokenBilling(ClientGatewayToken $cgt, PaymentHash $payment_hash){}
|
||||
public function tokenBilling(ClientGatewayToken $cgt, PaymentHash $payment_hash)
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the inbound request payment method type for access.
|
||||
*
|
||||
* @param int $payment_method_id The Payment Method ID
|
||||
*/
|
||||
public function setPaymentMethod($payment_method_id){}
|
||||
public function setPaymentMethod($payment_method_id)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
/************************** Helper methods *************************************/
|
||||
|
@ -69,5 +69,4 @@ class YourGatewayPaymentDriver extends BaseDriver
|
||||
{
|
||||
return $this->payment_method->yourTokenBillingImplmentation(); //this is your custom implementation from here
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -26,6 +26,7 @@ use App\Utils\Traits\MakesHash;
|
||||
use Exception;
|
||||
use Omnipay\Common\Item;
|
||||
use stdClass;
|
||||
|
||||
class PayPalExpressPaymentDriver extends BasePaymentDriver
|
||||
{
|
||||
use MakesHash;
|
||||
|
@ -22,10 +22,10 @@ use App\Utils\CurlUtils;
|
||||
use App\Utils\HtmlEngine;
|
||||
use App\Utils\Traits\MakesHash;
|
||||
use Illuminate\Support\Facades\App;
|
||||
use Illuminate\Support\Facades\Cache;
|
||||
use Illuminate\Support\Facades\Response;
|
||||
use Illuminate\Support\Facades\Storage;
|
||||
use Illuminate\Support\Str;
|
||||
use Illuminate\Support\Facades\Response;
|
||||
use Illuminate\Support\Facades\Cache;
|
||||
|
||||
class Phantom
|
||||
{
|
||||
|
@ -85,8 +85,9 @@ class SystemHealth
|
||||
|
||||
public static function checkConfigCache()
|
||||
{
|
||||
if(env('APP_URL'))
|
||||
if (env('APP_URL')) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user