Skip to content

Commit

Permalink
added new params
Browse files Browse the repository at this point in the history
  • Loading branch information
Iulian Masar committed Mar 28, 2024
1 parent bc53198 commit 6e69503
Show file tree
Hide file tree
Showing 53 changed files with 84 additions and 2,423 deletions.
2 changes: 1 addition & 1 deletion MangoPay/ApiCards.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ public function GetTransactions($cardId, & $pagination = null, $filter = null, $
/**
* Validate a card
* @param $cardId
* @return \MangoPay\Card
* @return \MangoPay\CardValidation
* @throws Libraries\Exception
*/
public function ValidateCard($cardId, $cardValidation)
Expand Down
6 changes: 6 additions & 0 deletions MangoPay/CardValidation.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,12 @@ class CardValidation extends Libraries\EntityBase
*/
public $SecureModeNeeded;

/**
* The mode applied for the 3DS2 protocol for CB, Visa, and Mastercard
* @var string
*/
public $SecureMode;

/**
* Ip Address
* @var string
Expand Down
5 changes: 5 additions & 0 deletions MangoPay/LineItem.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,9 @@ class LineItem extends Libraries\Dto
* @var string
*/
public $Description;

/**
* @var string
*/
public $Category;
}
49 changes: 44 additions & 5 deletions MangoPay/PayInPaymentDetailsPaypal.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,15 @@ class PayInPaymentDetailsPaypal extends Libraries\Dto implements PayInPaymentDet
*/
public $ShippingAddress;


/// V2 ///

/**
* PayPal buyer's email account
* @var string
* @deprecated This property will be removed in the future due to the introduction of a new way to create PayPal PayIns
*/
public $PaypalBuyerAccountEmail;



/// V2 ///

/**
* Custom description of the payment shown to the consumer when making payments and on the bank statement
* @var string
Expand Down Expand Up @@ -54,6 +52,47 @@ class PayInPaymentDetailsPaypal extends Libraries\Dto implements PayInPaymentDet
*/
public $Reference;

/**
* @var string
*/
public $CancelURL;

/**
* @var string
*/
public $PaypalPayerID;

/**
* @var string
*/
public $BuyerCountry;

/**
* @var string
*/
public $BuyerFirstname;

/**
* @var string
*/
public $BuyerLastname;

/**
* @var string
*/
public $BuyerPhone;

/**
* @var string
*/
public $PaypalOrderID;

/**
* @var array
*/
public $Trackings;


public function GetSubObjects()
{
$subObjects = parent::GetSubObjects();
Expand Down
26 changes: 26 additions & 0 deletions MangoPay/PayPalWebTracking.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<?php

namespace MangoPay;


class PayPalWebTracking extends Libraries\Dto
{
/**
* Item name
* @var string
*/
public $TrackingNumber;

/**
* Quantity of item bought
* @var string
*/
public $Carrier;

/**
* The item cost
* @var bool
*/
public $NotifyBuyer;

}
13 changes: 0 additions & 13 deletions demos/api/config.php

This file was deleted.

25 changes: 0 additions & 25 deletions demos/api/demo.css

This file was deleted.

5 changes: 0 additions & 5 deletions demos/api/demo.js

This file was deleted.

213 changes: 0 additions & 213 deletions demos/api/form.php

This file was deleted.

Loading

0 comments on commit 6e69503

Please sign in to comment.