Created
September 12, 2013 13:20
-
-
Save timrogers/6537157 to your computer and use it in GitHub Desktop.
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
<?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