mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-07 11:14:40 -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,
|
'invoiceNumber' => $this->invoice()->invoice_number,
|
||||||
'client' => $this->client(),
|
'client' => $this->client(),
|
||||||
'contact' => $this->invitation->contact,
|
'contact' => $this->invitation->contact,
|
||||||
|
'invitation' => $this->invitation,
|
||||||
'gatewayType' => $this->gatewayType,
|
'gatewayType' => $this->gatewayType,
|
||||||
'currencyId' => $this->client()->getCurrencyId(),
|
'currencyId' => $this->client()->getCurrencyId(),
|
||||||
'currencyCode' => $this->client()->getCurrencyCode(),
|
'currencyCode' => $this->client()->getCurrencyCode(),
|
||||||
|
@ -316,6 +316,8 @@
|
|||||||
|
|
||||||
<p> </p>
|
<p> </p>
|
||||||
<center>
|
<center>
|
||||||
|
{!! Button::normal(strtoupper(trans('texts.cancel')))->large()->asLinkTo($invitation->getLink()) !!}
|
||||||
|
|
||||||
@if(isset($amount))
|
@if(isset($amount))
|
||||||
{!! Button::success(strtoupper(trans('texts.pay_now') . ' - ' . $account->formatMoney($amount, $client, CURRENCY_DECORATOR_CODE) ))
|
{!! Button::success(strtoupper(trans('texts.pay_now') . ' - ' . $account->formatMoney($amount, $client, CURRENCY_DECORATOR_CODE) ))
|
||||||
->submit()
|
->submit()
|
||||||
|
@ -232,6 +232,8 @@
|
|||||||
|
|
||||||
<div class="col-md-8 col-md-offset-4">
|
<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')))
|
{!! Button::success(strtoupper(trans('texts.add_account')))
|
||||||
->submit()
|
->submit()
|
||||||
->withAttributes(['id'=>'add_account_button'])
|
->withAttributes(['id'=>'add_account_button'])
|
||||||
|
@ -30,6 +30,8 @@
|
|||||||
<p> </p>
|
<p> </p>
|
||||||
|
|
||||||
<center>
|
<center>
|
||||||
|
{!! Button::normal(strtoupper(trans('texts.cancel')))->large()->asLinkTo($invitation->getLink()) !!}
|
||||||
|
|
||||||
@if(isset($amount) && empty($paymentMethodPending))
|
@if(isset($amount) && empty($paymentMethodPending))
|
||||||
{!! Button::success(strtoupper(trans('texts.pay_now') . ' - ' . $account->formatMoney($amount, $client, CURRENCY_DECORATOR_CODE) ))
|
{!! Button::success(strtoupper(trans('texts.pay_now') . ' - ' . $account->formatMoney($amount, $client, CURRENCY_DECORATOR_CODE) ))
|
||||||
->submit()
|
->submit()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user