-
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.
Merge pull request #608 from Mangopay/rel/3.22.0
Rel/3.22.0
- Loading branch information
Showing
21 changed files
with
683 additions
and
59 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,92 @@ | ||
<?php | ||
|
||
namespace MangoPay; | ||
|
||
class CardValidation extends Libraries\EntityBase | ||
{ | ||
/** | ||
* Author Id | ||
* @var string | ||
*/ | ||
public $AuthorId; | ||
|
||
/** | ||
* This is the URL where users are automatically redirected | ||
* after 3D secure validation (if activated) | ||
* @var string | ||
*/ | ||
public $SecureModeReturnUrl; | ||
|
||
/** | ||
* SecureModeRedirectURL | ||
* @var string | ||
*/ | ||
public $SecureModeRedirectURL; | ||
|
||
/** | ||
* Boolean. The value is 'true' if the SecureMode was used | ||
* @var bool | ||
*/ | ||
public $SecureModeNeeded; | ||
|
||
/** | ||
* Ip Address | ||
* @var string | ||
*/ | ||
public $IpAddress; | ||
|
||
/** | ||
* BrowserInfo | ||
* @var BrowserInfo | ||
*/ | ||
public $BrowserInfo; | ||
|
||
/** | ||
* Validity. For allowed values, see constants in MangoPay\CardValidity | ||
* @var string | ||
*/ | ||
public $Validity; | ||
|
||
/** | ||
* @var string | ||
* @see \MangoPay\TransactionType | ||
*/ | ||
public $Type; | ||
|
||
/** | ||
* Applied3DSVersion | ||
* @var string | ||
*/ | ||
public $Applied3DSVersion; | ||
|
||
/** | ||
* The current status of the card validation | ||
* @var string | ||
* @see \MangoPay\CardValidationStatus | ||
*/ | ||
public $Status; | ||
|
||
/** | ||
* The mandate result code | ||
* @var string | ||
*/ | ||
public $ResultCode; | ||
|
||
/** | ||
* The mandate result Message | ||
* @var string | ||
*/ | ||
public $ResultMessage; | ||
|
||
/** | ||
* Get array with mapping which property is object and what type of object | ||
* @return array | ||
*/ | ||
public function GetSubObjects() | ||
{ | ||
$subObjects = parent::GetSubObjects(); | ||
$subObjects['BrowserInfo'] = '\MangoPay\BrowserInfo'; | ||
|
||
return $subObjects; | ||
} | ||
} |
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,10 @@ | ||
<?php | ||
|
||
namespace MangoPay; | ||
|
||
class CardValidationStatus | ||
{ | ||
const Created = 'CREATED'; | ||
const Succeeded = 'SUCCEEDED'; | ||
const Failed = 'FAILED'; | ||
} |
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
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,13 @@ | ||
<?php | ||
|
||
namespace MangoPay; | ||
|
||
class PayInPaymentDetailsBlik extends Libraries\Dto implements PayInPaymentDetails | ||
{ | ||
/** | ||
* Custom description to show on the user's bank statement. | ||
* It can be up to 10 char alphanumeric and space. | ||
* @var string | ||
*/ | ||
public $StatementDescriptor; | ||
} |
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,73 @@ | ||
<?php | ||
|
||
namespace MangoPay; | ||
|
||
/** | ||
* Class represents Klarna type for mean of payment in Klarna entity | ||
*/ | ||
class PayInPaymentDetailsKlarna extends Libraries\Dto implements PayInPaymentDetails | ||
{ | ||
|
||
/** | ||
* Information about the order items (basket) | ||
* Note : The LineItems total amount must match the declared DebitedFunds | ||
* @var array | ||
*/ | ||
public $LineItems; | ||
|
||
/** | ||
* The end-user residency country | ||
* @var string | ||
*/ | ||
public $Country; | ||
|
||
/** | ||
* The language in which the Klarna payment page is to be displayed - Alpha-2 format (default US) | ||
* @var string | ||
*/ | ||
public $Culture; | ||
|
||
/** | ||
* The end-user mobile phone number | ||
* @var string | ||
*/ | ||
public $Phone; | ||
|
||
/** | ||
* The end-user email address | ||
* @var string | ||
*/ | ||
public $Email; | ||
|
||
/** | ||
* Klarna custom data that you can add to this item | ||
* @var string | ||
*/ | ||
public $AdditionalData; | ||
|
||
/** | ||
* Information about the shipping address | ||
* @var Shipping | ||
*/ | ||
public $Shipping; | ||
|
||
/** | ||
* The Klarna option that the end-user has chosen at checkout | ||
* @var string | ||
*/ | ||
public $PaymentMethod; | ||
|
||
/** | ||
* The merchant order reference | ||
* @var string | ||
*/ | ||
public $MerchantOrderId; | ||
|
||
public function GetSubObjects() | ||
{ | ||
$subObjects = parent::GetSubObjects(); | ||
$subObjects['Shipping'] = '\MangoPay\Shipping'; | ||
|
||
return $subObjects; | ||
} | ||
} |
Oops, something went wrong.