Skip to content

Commit

Permalink
duplicado recebedor primário
Browse files Browse the repository at this point in the history
  • Loading branch information
SOSTheBlack committed Feb 26, 2015
1 parent 7e1ecb1 commit b6fc56b
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/commands/MoipAuthCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,10 @@ public function __construct()
public function fire()
{
$environment= $this->confirm('Ambiente [yes producao|no para Sandbox]') ? 'Moip' : 'Sandbox';
$receiver = $this->ask('Recebedor primario '.$environment);
$token = $this->ask('token '.$environment);
$key = $this->secret('Key '.$environment);
$moip = Moip::first();
$moip->environment = $environment === 'Moip' ? 1 : 0;
$moip->receiver = $receiver;
$moip->token = $token;
$moip->key = $key;
$moip->save();
Expand Down

0 comments on commit b6fc56b

Please sign in to comment.