diff --git a/app/lang/en/texts.php b/app/lang/en/texts.php index 0b87b7cd9f52..876457dc22bb 100644 --- a/app/lang/en/texts.php +++ b/app/lang/en/texts.php @@ -443,6 +443,10 @@ return array( 'invalid_counter' => 'To prevent a possible conflict please set either an invoice or quote number prefix', 'mark_sent' => 'Mark sent', - + 'gateway_help_1' => ':link to sign up for Authorize.net.', + 'gateway_help_2' => ':link to sign up for Authorize.net.', + 'gateway_help_17' => ':link to get your PayPal API signature.', + 'gateway_help_23' => 'Note: use your secret API key, not your publishable API key.', + 'gateway_help_27' => ':link to sign up for TwoCheckout.', ); \ No newline at end of file diff --git a/app/models/Gateway.php b/app/models/Gateway.php index 7d84a7db32ec..0d884f2e1f8b 100755 --- a/app/models/Gateway.php +++ b/app/models/Gateway.php @@ -14,6 +14,23 @@ class Gateway extends Eloquent { return '/images/gateways/logo_'.$this->provider.'.png'; } + + public function getHelp() + { + $link = ''; + + if ($this->id == GATEWAY_AUTHORIZE_NET || $this->id == GATEWAY_AUTHORIZE_NET_SIM) { + $link = 'http://reseller.authorize.net/application/?id=5560364'; + } else if ($this->id == GATEWAY_PAYPAL_EXPRESS) { + $link = 'https://www.paypal.com/us/cgi-bin/webscr?cmd=_login-api-run'; + } else if ($this->id == GATEWAY_TWO_CHECKOUT) { + $link = 'https://www.2checkout.com/referral?r=2c37ac2298'; + } + + $key = 'texts.gateway_help_' . $this->id; + $str = trans($key, ['link' => "Click here"]); + return $key != $str ? $str : ''; + } public function getFields() { diff --git a/app/routes.php b/app/routes.php index 84874dfcc920..10babb252cdf 100755 --- a/app/routes.php +++ b/app/routes.php @@ -225,7 +225,10 @@ define('PAYMENT_LIBRARY_OMNIPAY', 1); define('PAYMENT_LIBRARY_PHP_PAYMENTS', 2); define('GATEWAY_AUTHORIZE_NET', 1); +define('GATEWAY_AUTHORIZE_NET_SIM', 2); define('GATEWAY_PAYPAL_EXPRESS', 17); +define('GATEWAY_STRIPE', 23); +define('GATEWAY_TWO_CHECKOUT', 27); define('GATEWAY_BEANSTREAM', 29); define('GATEWAY_PSIGATE', 30); define('GATEWAY_MOOLAH', 31); diff --git a/app/views/accounts/payments.blade.php b/app/views/accounts/payments.blade.php index 73684db59234..dab8c7044285 100755 --- a/app/views/accounts/payments.blade.php +++ b/app/views/accounts/payments.blade.php @@ -57,6 +57,15 @@ @endif @endforeach + + @if($gateway->getHelp()) +