mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-06-23 20:00:33 -04:00
Provide a 'cancel payment' button in Stripe #1248
This commit is contained in:
parent
521ffeb27e
commit
ae7acc8602
@ -161,6 +161,7 @@ class BasePaymentDriver
|
||||
'invoiceNumber' => $this->invoice()->invoice_number,
|
||||
'client' => $this->client(),
|
||||
'contact' => $this->invitation->contact,
|
||||
'invitation' => $this->invitation,
|
||||
'gatewayType' => $this->gatewayType,
|
||||
'currencyId' => $this->client()->getCurrencyId(),
|
||||
'currencyCode' => $this->client()->getCurrencyCode(),
|
||||
|
@ -316,6 +316,8 @@
|
||||
|
||||
<p> </p>
|
||||
<center>
|
||||
{!! Button::normal(strtoupper(trans('texts.cancel')))->large()->asLinkTo($invitation->getLink()) !!}
|
||||
|
||||
@if(isset($amount))
|
||||
{!! Button::success(strtoupper(trans('texts.pay_now') . ' - ' . $account->formatMoney($amount, $client, CURRENCY_DECORATOR_CODE) ))
|
||||
->submit()
|
||||
|
@ -232,6 +232,8 @@
|
||||
|
||||
<div class="col-md-8 col-md-offset-4">
|
||||
|
||||
{!! Button::normal(strtoupper(trans('texts.cancel')))->large()->asLinkTo($invitation->getLink()) !!}
|
||||
|
||||
{!! Button::success(strtoupper(trans('texts.add_account')))
|
||||
->submit()
|
||||
->withAttributes(['id'=>'add_account_button'])
|
||||
|
@ -30,6 +30,8 @@
|
||||
<p> </p>
|
||||
|
||||
<center>
|
||||
{!! Button::normal(strtoupper(trans('texts.cancel')))->large()->asLinkTo($invitation->getLink()) !!}
|
||||
|
||||
@if(isset($amount) && empty($paymentMethodPending))
|
||||
{!! Button::success(strtoupper(trans('texts.pay_now') . ' - ' . $account->formatMoney($amount, $client, CURRENCY_DECORATOR_CODE) ))
|
||||
->submit()
|
||||
|
Loading…
x
Reference in New Issue
Block a user