-
Notifications
You must be signed in to change notification settings - Fork 132
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ee68459
commit 6e62b23
Showing
5 changed files
with
137 additions
and
27 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<?php | ||
namespace MangoPay; | ||
|
||
/** | ||
* Platform types | ||
*/ | ||
class PlatformType | ||
{ | ||
const Marketplace = 'MARKETPLACE'; | ||
const P2pPayment = 'P2P_PAYMENT'; | ||
const CrowdfundingDonation = 'CROWDFUNDING_DONATION'; | ||
const CrowdfundingReward = 'CROWDFUNDING_REWARD'; | ||
const CrowdfundingEquity = 'CROWDFUNDING_EQUITY'; | ||
const CrowdfundingLoan = 'CROWDFUNDING_LOAN'; | ||
const Other = 'OTHER'; | ||
} |
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 |
---|---|---|
|
@@ -17,6 +17,21 @@ function test_Clients_Save() { | |
$clients = new \MangoPay\Client(); | ||
$clients->PrimaryButtonColour = "#afafae"; | ||
$clients->PrimaryThemeColour = "#afafae"; | ||
$clients->PlatformDescription = "platform description"; | ||
$clients->PlatformType = \MangoPay\PlatformType::Other; | ||
$clients->PlatformURL = "http://sdk-unit-tests.com"; | ||
$clients->HeadquartersAddress = new \MangoPay\Address(); | ||
$clients->HeadquartersAddress->AddressLine1 = "AddressLine1"; | ||
$clients->HeadquartersAddress->AddressLine2 = "AddressLine2"; | ||
$clients->HeadquartersAddress->City = "City"; | ||
$clients->HeadquartersAddress->Region = "Region"; | ||
$clients->HeadquartersAddress->PostalCode = "11222"; | ||
$clients->HeadquartersAddress->Country = "FR"; | ||
$clients->TaxNumber = "12345"; | ||
$clients->TechEmails = array("[email protected]", "[email protected]"); | ||
$clients->AdminEmails = array("[email protected]", "[email protected]"); | ||
$clients->FraudEmails = array("[email protected]", "[email protected]"); | ||
$clients->BillingEmails = array("[email protected]", "[email protected]"); | ||
|
||
$saveClients = $this->_api->Clients->Update($clients); | ||
|
||
|