Skip to content

Commit

Permalink
add filed barcode and verification_code in transaction_details
Browse files Browse the repository at this point in the history
  • Loading branch information
edmarSoaress committed Feb 22, 2024
1 parent b456188 commit 9439265
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
10 changes: 10 additions & 0 deletions src/MercadoPago/Resources/Payment/Barcode.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?php

namespace MercadoPago\Resources\Payment;

/** Barcode class. */
class Barcode
{
/** Content info. */
public ?string $content;
}
8 changes: 7 additions & 1 deletion src/MercadoPago/Resources/Payment/TransactionData.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,18 @@ class TransactionData
/** Ticket Url. */
public ?string $ticket_url;


/** E2E ID. */
public ?string $e2e_id;

/** Barcode info. */
public array|object|null $barcode;

/** Verification code info. */
public ?string $verification_code;

private $map = [
"bank_info" => "MercadoPago\Resources\Payment\BankInfo",
"barcode" => "MercadoPago\Resources\Payment\Barcode",
];

/**
Expand Down

0 comments on commit 9439265

Please sign in to comment.