Skip to content

Commit

Permalink
Merge pull request #4 from christianheidorn/master
Browse files Browse the repository at this point in the history
Added Checksums & JSON/Data Methods
  • Loading branch information
threesquared authored Sep 30, 2016
2 parents e0809ee + 451528e commit c5ba002
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
composer.phar
composer.lock
.DS_Store
/.idea/
15 changes: 15 additions & 0 deletions src/Threesquared/LaravelPaymill/Paymill.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,11 @@ public function subscription($id = null)
return $this->createModel('Paymill\Models\Request\Subscription', $id);
}

public function checksum($id = null)
{
return $this->createModel('Paymill\Models\Request\Checksum', $id);
}

/**
* Create the Paymill model
*
Expand Down Expand Up @@ -125,6 +130,16 @@ public function delete()
return $this->request->delete($this->model);
}

public function json()
{
return $this->request->getJSONObject($this->model);
}

public function data()
{
return $this->request->getDataAsArray($this->model);
}

/**
* Return the Paymill request class
* @return Request
Expand Down

0 comments on commit c5ba002

Please sign in to comment.