Provide a 'cancel payment' button in Stripe #1248

This commit is contained in:
Hillel Coren 2017-03-01 17:27:46 +02:00
parent 521ffeb27e
commit ae7acc8602
4 changed files with 7 additions and 0 deletions

View File

@ -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(),

View File

@ -316,6 +316,8 @@
<p>&nbsp;</p>
<center>
{!! Button::normal(strtoupper(trans('texts.cancel')))->large()->asLinkTo($invitation->getLink()) !!}
&nbsp;&nbsp;
@if(isset($amount))
{!! Button::success(strtoupper(trans('texts.pay_now') . ' - ' . $account->formatMoney($amount, $client, CURRENCY_DECORATOR_CODE) ))
->submit()

View File

@ -232,6 +232,8 @@
<div class="col-md-8 col-md-offset-4">
{!! Button::normal(strtoupper(trans('texts.cancel')))->large()->asLinkTo($invitation->getLink()) !!}
&nbsp;&nbsp;
{!! Button::success(strtoupper(trans('texts.add_account')))
->submit()
->withAttributes(['id'=>'add_account_button'])

View File

@ -30,6 +30,8 @@
<p>&nbsp;</p>
<center>
{!! Button::normal(strtoupper(trans('texts.cancel')))->large()->asLinkTo($invitation->getLink()) !!}
&nbsp;&nbsp;
@if(isset($amount) && empty($paymentMethodPending))
{!! Button::success(strtoupper(trans('texts.pay_now') . ' - ' . $account->formatMoney($amount, $client, CURRENCY_DECORATOR_CODE) ))
->submit()