Файловый менеджер - Редактировать - /var/www/html/libraries/omnipay3/vendor/omnipay/payfast/src/Message/CompletePurchaseItnResponse.php
Ðазад
<?php namespace Omnipay\PayFast\Message; use Omnipay\Common\Message\AbstractResponse; use Omnipay\Common\Message\RequestInterface; /** * PayFast Complete Purchase ITN Response */ class CompletePurchaseItnResponse extends AbstractResponse { public function __construct(RequestInterface $request, $data, $status) { parent::__construct($request, $data); $this->status = $status; } public function isSuccessful() { return 'VALID' === $this->status; } public function getTransactionReference() { if ($this->isSuccessful() && isset($this->data['pf_payment_id'])) { return $this->data['pf_payment_id']; } } public function getMessage() { if ($this->isSuccessful() && isset($this->data['payment_status'])) { return $this->data['payment_status']; } else { return $this->status; } } }
| ver. 1.1 | |
.
| PHP 8.4.18 | Ð“ÐµÐ½ÐµÑ€Ð°Ñ†Ð¸Ñ Ñтраницы: 0 |
proxy
|
phpinfo
|
ÐаÑтройка