Skip to content

Commit

Permalink
Fix missing properties error in payments
Browse files Browse the repository at this point in the history
* Add charges_details
* Add taxes
* Add net_amount
* Add point_of_interaction
* Add payment_method_option_id
* Add merchant_services
  • Loading branch information
delias-silva committed Aug 11, 2021
1 parent f282d14 commit 001d18a
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions src/MercadoPago/Entities/Shared/Payment.php
Original file line number Diff line number Diff line change
Expand Up @@ -307,6 +307,48 @@ class Payment extends Entity
*/
protected $platform_id;

/**
* charges details
* @var object
* @Attribute()
*/
protected $charges_details;

/**
* taxes
* @Attribute(type = "array")
* @var array
*/
protected $taxes;

/**
* net_amount
* @var float
* @Attribute(type = "float")
*/
protected $net_amount;

/**
* point_of_interaction
* @var object
* @Attribute()
*/
protected $point_of_interaction;

/**
* payment_method_option_id
* @var string
* @Attribute()
*/
protected $payment_method_option_id;

/**
* merchant_services
* @var object
* @Attribute()
*/
protected $merchant_services;

public function refund($amount = 0){
$refund = new Refund(["payment_id" => $this->id]);
if ($amount > 0){
Expand Down

0 comments on commit 001d18a

Please sign in to comment.