mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Added SagePay referral
This commit is contained in:
parent
9a29efbc6f
commit
9b9e99ee78
@ -508,6 +508,8 @@ if (!defined('CONTACT_EMAIL')) {
|
|||||||
define('GATEWAY_PAYFAST', 13);
|
define('GATEWAY_PAYFAST', 13);
|
||||||
define('GATEWAY_PAYPAL_EXPRESS', 17);
|
define('GATEWAY_PAYPAL_EXPRESS', 17);
|
||||||
define('GATEWAY_PAYPAL_PRO', 18);
|
define('GATEWAY_PAYPAL_PRO', 18);
|
||||||
|
define('GATEWAY_SAGE_PAY_DIRECT', 20);
|
||||||
|
define('GATEWAY_SAGE_PAY_SERVER', 21);
|
||||||
define('GATEWAY_STRIPE', 23);
|
define('GATEWAY_STRIPE', 23);
|
||||||
define('GATEWAY_GOCARDLESS', 6);
|
define('GATEWAY_GOCARDLESS', 6);
|
||||||
define('GATEWAY_TWO_CHECKOUT', 27);
|
define('GATEWAY_TWO_CHECKOUT', 27);
|
||||||
|
@ -75,6 +75,8 @@ class Gateway extends Eloquent
|
|||||||
$link = 'https://bitpay.com/dashboard/signup';
|
$link = 'https://bitpay.com/dashboard/signup';
|
||||||
} elseif ($this->id == GATEWAY_DWOLLA) {
|
} elseif ($this->id == GATEWAY_DWOLLA) {
|
||||||
$link = 'https://www.dwolla.com/register';
|
$link = 'https://www.dwolla.com/register';
|
||||||
|
} elseif ($this->id == GATEWAY_SAGE_PAY_DIRECT || $this->id == GATEWAY_SAGE_PAY_SERVER) {
|
||||||
|
$link = 'https://applications.sagepay.com/apply/2C02C252-0F8A-1B84-E10D-CF933EFCAA99';
|
||||||
}
|
}
|
||||||
|
|
||||||
$key = 'texts.gateway_help_'.$this->id;
|
$key = 'texts.gateway_help_'.$this->id;
|
||||||
|
@ -1072,6 +1072,8 @@ $LANG = array(
|
|||||||
'user_create_all' => 'Create clients, invoices, etc.',
|
'user_create_all' => 'Create clients, invoices, etc.',
|
||||||
'user_view_all' => 'View all clients, invoices, etc.',
|
'user_view_all' => 'View all clients, invoices, etc.',
|
||||||
'user_edit_all' => 'Edit all clients, invoices, etc.',
|
'user_edit_all' => 'Edit all clients, invoices, etc.',
|
||||||
|
'gateway_help_20' => ':link to sign up for Sage Pay.',
|
||||||
|
'gateway_help_21' => ':link to sign up for Sage Pay.',
|
||||||
|
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@ -52,6 +52,15 @@
|
|||||||
@foreach ($gateways as $gateway)
|
@foreach ($gateways as $gateway)
|
||||||
|
|
||||||
<div id="gateway_{{ $gateway->id }}_div" class='gateway-fields' style="display: none">
|
<div id="gateway_{{ $gateway->id }}_div" class='gateway-fields' style="display: none">
|
||||||
|
@if ($gateway->getHelp())
|
||||||
|
<div class="form-group">
|
||||||
|
<label class="control-label col-lg-4 col-sm-4"></label>
|
||||||
|
<div class="col-lg-8 col-sm-8 help-block">
|
||||||
|
{!! $gateway->getHelp() !!}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
@endif
|
||||||
|
|
||||||
@foreach ($gateway->fields as $field => $details)
|
@foreach ($gateway->fields as $field => $details)
|
||||||
|
|
||||||
@if ($details && !$accountGateway)
|
@if ($details && !$accountGateway)
|
||||||
@ -73,15 +82,6 @@
|
|||||||
|
|
||||||
@endforeach
|
@endforeach
|
||||||
|
|
||||||
@if ($gateway->getHelp())
|
|
||||||
<div class="form-group">
|
|
||||||
<label class="control-label col-lg-4 col-sm-4"></label>
|
|
||||||
<div class="col-lg-8 col-sm-8 help-block">
|
|
||||||
{!! $gateway->getHelp() !!}
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
@endif
|
|
||||||
|
|
||||||
@if ($gateway->id == GATEWAY_STRIPE)
|
@if ($gateway->id == GATEWAY_STRIPE)
|
||||||
{!! Former::text('publishable_key') !!}
|
{!! Former::text('publishable_key') !!}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user