Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Integração com a API Moip Assinaturas #37

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
443 changes: 275 additions & 168 deletions README.md

Large diffs are not rendered by default.

11 changes: 0 additions & 11 deletions lib/Moip.php
Original file line number Diff line number Diff line change
Expand Up @@ -803,15 +803,4 @@ public function queryParcel($login, $maxParcel, $rate, $simulatedValue) {
return $answer;
}

}

class MoipEnvironment {
public $base_url;
public $name;

function __construct($base_url = '', $name = '')
{
$this->base_url = $base_url;
$this->name = $name;
}
}
26 changes: 0 additions & 26 deletions lib/MoipClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -128,30 +128,4 @@ function curlGet($credentials, $url, $error=null) {
}
}

}

/**
* Read-only response
* @property boolean|string $response
* @property string $error
* @property string $xml
* @property string $payment_url
* @property string $token
*/
class MoipResponse {
private $response;

function __construct(array $response)
{
$this->response = $response;
}

function __get($name)
{
if (isset($this->response[$name]))
{
return $this->response[$name];
}
return null;
}
}
Loading