Файловый менеджер - Редактировать - /var/www/html/libraries/omnipay/vendor/omnipay/mollie/src/Message/PurchaseRequest.php
Ðазад
<?php namespace Omnipay\Mollie\Message; /** * Mollie Purchase Request * * @method \Omnipay\Mollie\Message\PurchaseResponse send() */ class PurchaseRequest extends AbstractRequest { public function getMetadata() { return $this->getParameter('metadata'); } public function setMetadata($value) { return $this->setParameter('metadata', $value); } public function getLocale() { return $this->getParameter('locale'); } public function setLocale($value) { return $this->setParameter('locale', $value); } public function getData() { $this->validate('apiKey', 'amount', 'description', 'returnUrl'); $data = array(); $data['amount'] = $this->getAmount(); $data['description'] = $this->getDescription(); $data['redirectUrl'] = $this->getReturnUrl(); $data['method'] = $this->getPaymentMethod(); $data['metadata'] = $this->getMetadata(); $data['issuer'] = $this->getIssuer(); $data['locale'] = $this->getLocale(); if ($this->getTransactionId()) { $data['metadata']['order_id'] = $this->getTransactionId(); } $webhookUrl = $this->getNotifyUrl(); if (null !== $webhookUrl) { $data['webhookUrl'] = $webhookUrl; } return $data; } public function sendData($data) { $httpResponse = $this->sendRequest('POST', '/payments', $data); return $this->response = new PurchaseResponse($this, $httpResponse->json()); } }
| ver. 1.1 | |
.
| PHP 8.4.18 | Ð“ÐµÐ½ÐµÑ€Ð°Ñ†Ð¸Ñ Ñтраницы: 0 |
proxy
|
phpinfo
|
ÐаÑтройка