diff --git a/app/controllers/AccountController.php b/app/controllers/AccountController.php index 25a9ca835968..20567c18a763 100755 --- a/app/controllers/AccountController.php +++ b/app/controllers/AccountController.php @@ -100,6 +100,7 @@ class AccountController extends \BaseController { $invitation = new Invitation(); $invitation->account_id = $account->id; $invitation->user_id = $account->users()->first()->id; + $invitation->public_id = $publicId; $invitation->invoice_id = $invoice->id; $invitation->contact_id = $client->contacts()->first()->id; $invitation->invitation_key = str_random(RANDOM_KEY_LENGTH); @@ -134,6 +135,8 @@ class AccountController extends \BaseController { $user->password = $random; $user->password_confirmation = $random; $user->username = $random; + $user->first_name = 'Invoice'; + $user->last_name = 'Ninja'; $user->notify_sent = false; $user->notify_paid = false; $account->users()->save($user); diff --git a/app/database/seeds/PaymentLibrariesSeeder.php b/app/database/seeds/PaymentLibrariesSeeder.php index 422ae53465f3..d9fcc428784d 100644 --- a/app/database/seeds/PaymentLibrariesSeeder.php +++ b/app/database/seeds/PaymentLibrariesSeeder.php @@ -5,6 +5,8 @@ class PaymentLibrariesSeeder extends Seeder public function run() { + Eloquent::unguard(); + $gateways = [ array('name'=>'BeanStream', 'provider'=>'BeanStream', 'payment_library_id' => 2), array('name'=>'Psigate', 'provider'=>'Psigate', 'payment_library_id' => 2) diff --git a/app/lang/en/texts.php b/app/lang/en/texts.php index 829f3c7cb2ed..e69096172896 100644 --- a/app/lang/en/texts.php +++ b/app/lang/en/texts.php @@ -308,6 +308,6 @@ return array( 'pro_plan_product' => 'Pro Plan', 'pro_plan_description' => 'One year enrollment in the Invoice Ninja Pro Plan', - 'pro_plan_succes' => 'We\'ve sent you an invoice. Once paid the kfeatures will be enabled.', + 'pro_plan_succes' => 'Thanks for joining! Once the invoice is paid your membership will begin.', ); diff --git a/app/models/Gateway.php b/app/models/Gateway.php index c1e747ffa8f7..64623caeab7b 100755 --- a/app/models/Gateway.php +++ b/app/models/Gateway.php @@ -25,7 +25,7 @@ class Gateway extends Eloquent } else { - $fields = Payment_Utility::load('config', 'drivers/'.$this->provider); + $fields = Payment_Utility::load('config', 'drivers/'.strtolower($this->provider)); } if($fields == null) diff --git a/app/views/accounts/payments.blade.php b/app/views/accounts/payments.blade.php index 53ab0d38f3c5..57b0aef340f2 100755 --- a/app/views/accounts/payments.blade.php +++ b/app/views/accounts/payments.blade.php @@ -10,9 +10,7 @@ {{ Former::populateField('notify_paid', intval(Auth::user()->notify_paid)) }} {{ Former::legend('Payment Gateway') }} - - {{Former::label('Lorem Ipsum goes here.')}} - +