Skip to content

Instantly share code, notes, and snippets.

@timrogers
Created September 12, 2013 13:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save timrogers/6537157 to your computer and use it in GitHub Desktop.
Save timrogers/6537157 to your computer and use it in GitHub Desktop.
<?php
// ...
public function cancel() {
$endpoint = self::$endpoint . '/' . $this->id . '/cancel';
return new self($this->client, $this->client->request('put', $endpoint));
}
public function refund() {
$endpoint = self::$endpoint . '/' . $this->id . '/refund';
return new self($this->client, $this->client->request('post', $endpoint));
}
//...
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment