-
Notifications
You must be signed in to change notification settings - Fork 66
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #26 from iugu/refactor-tests
Refactor tests
- Loading branch information
Showing
23 changed files
with
352 additions
and
1,939 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# EditorConfig: http://EditorConfig.org | ||
|
||
root = true | ||
|
||
[*] | ||
end_of_line = lf | ||
charset = utf-8 | ||
indent_style = space | ||
indent_size = 2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
language: php | ||
php: | ||
- '7.1' | ||
before_install: | ||
- composer install | ||
script: | ||
- composer tests |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,7 +18,7 @@ | |
"name" => 'nome', | ||
"reply_to" => '[email protected]', | ||
)); | ||
|
||
// verificação de subconta | ||
$validate = Iugu_Account::create(Array( | ||
"id" => 'CLIENT_ID ', | ||
|
@@ -44,28 +44,28 @@ | |
"bank_cc" => '999999-9', | ||
) | ||
)); | ||
|
||
// retornando os dados do mktplace | ||
Iugu::setApiKey('TOKEN_IUGU'); // user token como parametro | ||
$account = Iugu_Account::fetch("CLIENT_ID"); // id da conta como parametro | ||
|
||
|
||
|
||
// transferendo valor para subconta | ||
$transfer = Iugu_Transfer::create(Array( | ||
"receiver_id" => "CLIENT_ID", // id da conta recebedora | ||
"amount_cents" => '1000' // valor em centavos = R$ 10,00 | ||
)); | ||
|
||
|
||
// retirando valor da subconta | ||
Iugu::setApiKey('TOKEN_IUGU'); // Chave do user | ||
$transfer = Iugu_Transfer::create(Array( | ||
"receiver_id" => "CLIENT_ID", // chave da conta mestre ou da conta recebedora | ||
"amount_cents" => $numValorCentavos | ||
)); | ||
|
||
|
||
// pedido de retirada de dinheiro | ||
Iugu::setApiKey('TOKEN_IUGU'); // Chave do user | ||
$withdraw = Iugu_Account::create(Array( | ||
|
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.