-
Notifications
You must be signed in to change notification settings - Fork 4
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 #2 from pixelandtonic/master
General fixes and improvements
- Loading branch information
Showing
15 changed files
with
367 additions
and
116 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 |
---|---|---|
@@ -1,3 +1,5 @@ | ||
composer.lock | ||
vendor | ||
build | ||
.idea | ||
.DS_Store |
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 |
---|---|---|
@@ -0,0 +1,40 @@ | ||
<?php | ||
|
||
namespace Omnipay\Paystack\Message; | ||
|
||
use Omnipay\Common\Exception\BadMethodCallException; | ||
use Omnipay\Common\Exception\InvalidRequestException; | ||
|
||
abstract class AbstractRequest extends \Omnipay\Common\Message\AbstractRequest | ||
{ | ||
protected $baseApiEndpoint = 'https://api.paystack.co/'; | ||
|
||
/** | ||
* @return string The URL endpoint for the request | ||
* @throws InvalidRequestException | ||
*/ | ||
public function getApiEndpoint() | ||
{ | ||
throw new InvalidRequestException('Api endpoint not implemented'); | ||
} | ||
|
||
public function getPublicKey() | ||
{ | ||
return $this->getParameter('public_key'); | ||
} | ||
|
||
public function setPublicKey($value) | ||
{ | ||
$this->setParameter('public_key', $value); | ||
} | ||
|
||
public function getSecretKey() | ||
{ | ||
return $this->getParameter('secret_key'); | ||
} | ||
|
||
public function setSecretKey($value) | ||
{ | ||
$this->setParameter('secret_key', $value); | ||
} | ||
} |
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
Oops, something went wrong.