mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-07 18:34:30 -04:00
Apply styles
This commit is contained in:
parent
1b3a1092a6
commit
9264b6b80e
@ -27,7 +27,6 @@ use Checkout\Models\Payments\Payment;
|
|||||||
use Checkout\Models\Payments\TokenSource;
|
use Checkout\Models\Payments\TokenSource;
|
||||||
use Illuminate\Contracts\View\Factory;
|
use Illuminate\Contracts\View\Factory;
|
||||||
use Illuminate\View\View;
|
use Illuminate\View\View;
|
||||||
use Omnipay\Common\Message\RedirectResponseInterface;
|
|
||||||
|
|
||||||
class CreditCard implements MethodInterface
|
class CreditCard implements MethodInterface
|
||||||
{
|
{
|
||||||
@ -99,7 +98,7 @@ class CreditCard implements MethodInterface
|
|||||||
|
|
||||||
return redirect()->route('client.payment_methods.show', $payment_method->hashed_id);
|
return redirect()->route('client.payment_methods.show', $payment_method->hashed_id);
|
||||||
}
|
}
|
||||||
} catch(CheckoutHttpException $exception) {
|
} catch (CheckoutHttpException $exception) {
|
||||||
throw new PaymentFailed(
|
throw new PaymentFailed(
|
||||||
$exception->getMessage()
|
$exception->getMessage()
|
||||||
);
|
);
|
||||||
@ -172,7 +171,6 @@ class CreditCard implements MethodInterface
|
|||||||
|
|
||||||
private function completePayment($method, PaymentResponseRequest $request)
|
private function completePayment($method, PaymentResponseRequest $request)
|
||||||
{
|
{
|
||||||
|
|
||||||
$payment = new Payment($method, $this->checkout->payment_hash->data->currency);
|
$payment = new Payment($method, $this->checkout->payment_hash->data->currency);
|
||||||
$payment->amount = $this->checkout->payment_hash->data->value;
|
$payment->amount = $this->checkout->payment_hash->data->value;
|
||||||
$payment->reference = $this->checkout->getDescription();
|
$payment->reference = $this->checkout->getDescription();
|
||||||
@ -200,7 +198,6 @@ class CreditCard implements MethodInterface
|
|||||||
$response = $this->checkout->gateway->payments()->request($payment);
|
$response = $this->checkout->gateway->payments()->request($payment);
|
||||||
|
|
||||||
if ($response->status == 'Authorized') {
|
if ($response->status == 'Authorized') {
|
||||||
|
|
||||||
return $this->processSuccessfulPayment($response);
|
return $this->processSuccessfulPayment($response);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -220,7 +217,6 @@ class CreditCard implements MethodInterface
|
|||||||
return $this->processUnsuccessfulPayment($response);
|
return $this->processUnsuccessfulPayment($response);
|
||||||
}
|
}
|
||||||
} catch (CheckoutHttpException $e) {
|
} catch (CheckoutHttpException $e) {
|
||||||
|
|
||||||
$this->checkout->unWindGatewayFees($this->checkout->payment_hash);
|
$this->checkout->unWindGatewayFees($this->checkout->payment_hash);
|
||||||
return $this->checkout->processInternallyFailedPayment($this->checkout, $e);
|
return $this->checkout->processInternallyFailedPayment($this->checkout, $e);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user