-
Notifications
You must be signed in to change notification settings - Fork 52
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 #36 from xsolla/payment_accounts
Added support for Saved Payment Accounts API methods to `XsollaClient`.
- Loading branch information
Showing
4 changed files
with
123 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
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,38 @@ | ||
<?php | ||
|
||
namespace Xsolla\SDK\Tests\Integration\API; | ||
|
||
/** | ||
* @group api | ||
*/ | ||
class PaymentAccountsTest extends AbstractAPITest | ||
{ | ||
protected static $userId; | ||
|
||
public function setUp() | ||
{ | ||
parent::setUp(); | ||
if (!static::$userId) { | ||
static::$userId = 'Game User'; | ||
} | ||
} | ||
|
||
public function testListPaymentAccounts() | ||
{ | ||
$response = $this->xsollaClient->ListPaymentAccounts(array( | ||
'project_id' => $this->projectId, | ||
'user_id' => static::$userId, | ||
)); | ||
static::assertInternalType('array', $response); | ||
} | ||
|
||
public function testChargePaymentAccount() | ||
{ | ||
static::markTestIncomplete('TODO: 404'); | ||
} | ||
|
||
public function testDeletePaymentAccount() | ||
{ | ||
static::markTestIncomplete('TODO: 404'); | ||
} | ||
} |