-
Notifications
You must be signed in to change notification settings - Fork 11
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 #1 from brucealdridge/master
Adding Merchant and Bank Account List Requests
- Loading branch information
Showing
3 changed files
with
86 additions
and
0 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
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,33 @@ | ||
<?php | ||
/** | ||
* PaywayRest Transaction Detail Request | ||
*/ | ||
namespace Omnipay\PaywayRest\Message; | ||
|
||
/** | ||
* PaywayRest Bank Account List Request | ||
* | ||
* @link https://www.payway.com.au/docs/rest.html#your-bank-accounts | ||
*/ | ||
class BankAccountListRequest extends AbstractRequest | ||
{ | ||
public function getData() | ||
{ | ||
return $data = array(); | ||
} | ||
|
||
public function getEndpoint() | ||
{ | ||
return $this->endpoint . '/your-bank-accounts'; | ||
} | ||
|
||
public function getHttpMethod() | ||
{ | ||
return 'GET'; | ||
} | ||
|
||
public function getUseSecretKey() | ||
{ | ||
return true; | ||
} | ||
} |
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,33 @@ | ||
<?php | ||
/** | ||
* PaywayRest Transaction Detail Request | ||
*/ | ||
namespace Omnipay\PaywayRest\Message; | ||
|
||
/** | ||
* PaywayRest Merchant ListRequest | ||
* | ||
* @link https://www.payway.com.au/docs/rest.html#list-merchants | ||
*/ | ||
class MerchantListRequest extends AbstractRequest | ||
{ | ||
public function getData() | ||
{ | ||
return $data = array(); | ||
} | ||
|
||
public function getEndpoint() | ||
{ | ||
return $this->endpoint . '/merchants'; | ||
} | ||
|
||
public function getHttpMethod() | ||
{ | ||
return 'GET'; | ||
} | ||
|
||
public function getUseSecretKey() | ||
{ | ||
return true; | ||
} | ||
} |